Skip to content

Commit d0a626e

Browse files
authored
refactor: disable husky git hooks more clearly (#4650)
1 parent 11bd58b commit d0a626e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/auto-commit/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ runs:
3939
NEW_PR_BRANCH: ${{ inputs.branch-name }}
4040
COMMIT_MESSAGE: ${{ inputs.commit-message }}
4141
COMMIT_FILES: ${{ inputs.commit-files }}
42+
HUSKY: 0 # Disable Husky hooks in CI
4243
run: |
4344
git config --global user.name "github-actions[bot]"
4445
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
@@ -47,7 +48,7 @@ runs:
4748
git add $COMMIT_FILES
4849
4950
# We can't use semantic commits here because of the if statement in the workflow
50-
git commit --no-verify --message "$COMMIT_MESSAGE"
51+
git commit --message "$COMMIT_MESSAGE"
5152
git push --force origin "$NEW_PR_BRANCH"
5253
5354
- name: 🪗 Create Pull Request

0 commit comments

Comments
 (0)