Skip to content

Commit

Permalink
Disable Husky precommit commits in some workflows (github#20548)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMGreene authored Jul 27, 2021
1 parent 5b76927 commit f0269db
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ jobs:
MERGE_RETRY_SLEEP: '10000' # ten seconds
UPDATE_LABELS: 'automerge,autosquash'
UPDATE_METHOD: 'merge'
HUSKY: '0' # Disable pre-commit hooks
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:

env:
# Disable pre-commit hooks; they don't play nicely with add-and-commit
HUSKY: 0
HUSKY: '0'
3 changes: 3 additions & 0 deletions .github/workflows/enterprise-dates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
- name: Create pull request
id: create-pull-request
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
env:
# Disable pre-commit hooks; they don't play nicely here
HUSKY: '0'
with:
# need to use a token with repo and workflow scopes for this step
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openapi-decorate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:

env:
# Disable pre-commit hooks; they don't play nicely with add-and-commit
HUSKY: 0
HUSKY: '0'
3 changes: 3 additions & 0 deletions .github/workflows/remove-unused-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
run: rm -rf ./results.md
- name: Create pull request
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
env:
# Disable pre-commit hooks; they don't play nicely here
HUSKY: '0'
with:
# need to use a token with repo and workflow scopes for this step
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update-graphql-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- name: Create pull request
id: create-pull-request
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
env:
# Disable pre-commit hooks; they don't play nicely here
HUSKY: '0'
with:
# need to use a token with repo and workflow scopes for this step
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -57,6 +60,7 @@ jobs:
If CI does not pass or other problems arise, contact #docs-engineering on slack."
labels: automerge,autoupdate
branch: graphql-schema-update

- if: ${{ failure() && env.FREEZE != 'true'}}
name: Delete remote branch (if previous steps failed)
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
Expand Down

0 comments on commit f0269db

Please sign in to comment.