Skip to content

Commit

Permalink
fix: fixed check-site-generation CI error
Browse files Browse the repository at this point in the history
Signed-off-by: Maksudur Rahman Maateen <[email protected]>
  • Loading branch information
Maksudur Rahman Maateen committed Aug 16, 2021
1 parent 478850e commit 2e826e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ jobs:
run: |
pip install requests==2.26.0 packaging==21.0
python scripts/site_generator.py
git status
git diff-index --quiet HEAD -- || exit 1
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ repos:
hooks:
- id: check-github-workflows
files: ^(.github/workflows/)

- repo: local
hooks:
- id: site_generator
name: Site Generator
entry: python scripts/site_generator.py
language: python
types: [python]
additional_dependencies: ['packaging==21.0', 'requests==2.26.0']

0 comments on commit 2e826e4

Please sign in to comment.