Skip to content

Commit e9cacd8

Browse files
authored
chore(ci): enforce pre-commit checks and remove auto-fix (#363)
Changed the GitHub Actions workflow to fail on pre-commit hook errors instead of continuing, ensuring issues must be resolved manually before proceeding. Removed automatic commit and push of pre-commit fixes to maintain intentional code changes.
1 parent 684b6fa commit e9cacd8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/pull-requests.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,11 @@ jobs:
3939
id: pre-commit
4040
with:
4141
extra_args: --all-files --show-diff-on-failure
42-
continue-on-error: true
42+
continue-on-error: false
4343
- name: Check for pre-commit changes
4444
id: git_diff
4545
run: |
46-
git diff --exit-code || echo "NEED=true" >> "$GITHUB_ENV"
47-
- if: env.NEED == 'true'
48-
run: |
49-
git config --global user.name 'Anoma Research'
50-
git config --global user.email '[email protected]'
51-
git add .
52-
git commit -m "Fix issues detected by pre-commit"
53-
git push
46+
git diff --exit-code
5447
build-and-deploy:
5548
runs-on: ubuntu-latest
5649
concurrency: ci-${{ github.ref }}

0 commit comments

Comments
 (0)