From f0269dbf4c85502178f9677899c732a3d0601e85 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Tue, 27 Jul 2021 15:59:41 -0500 Subject: [PATCH] Disable Husky precommit commits in some workflows (#20548) --- .github/workflows/automerge.yml | 1 + .github/workflows/crowdin-cleanup.yml | 2 +- .github/workflows/enterprise-dates.yml | 3 +++ .github/workflows/openapi-decorate.yml | 2 +- .github/workflows/remove-unused-assets.yml | 3 +++ .github/workflows/update-graphql-files.yml | 4 ++++ 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 693238947d3a..a3bfa0dd8528 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -39,3 +39,4 @@ jobs: MERGE_RETRY_SLEEP: '10000' # ten seconds UPDATE_LABELS: 'automerge,autosquash' UPDATE_METHOD: 'merge' + HUSKY: '0' # Disable pre-commit hooks diff --git a/.github/workflows/crowdin-cleanup.yml b/.github/workflows/crowdin-cleanup.yml index 18e13a606ff8..9d920b65ba25 100644 --- a/.github/workflows/crowdin-cleanup.yml +++ b/.github/workflows/crowdin-cleanup.yml @@ -43,4 +43,4 @@ jobs: env: # Disable pre-commit hooks; they don't play nicely with add-and-commit - HUSKY: 0 + HUSKY: '0' diff --git a/.github/workflows/enterprise-dates.yml b/.github/workflows/enterprise-dates.yml index 892e87ffe07c..8a696c2e729d 100644 --- a/.github/workflows/enterprise-dates.yml +++ b/.github/workflows/enterprise-dates.yml @@ -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 }} diff --git a/.github/workflows/openapi-decorate.yml b/.github/workflows/openapi-decorate.yml index c0f40db23d2d..5d5b84dc305d 100644 --- a/.github/workflows/openapi-decorate.yml +++ b/.github/workflows/openapi-decorate.yml @@ -44,4 +44,4 @@ jobs: env: # Disable pre-commit hooks; they don't play nicely with add-and-commit - HUSKY: 0 + HUSKY: '0' diff --git a/.github/workflows/remove-unused-assets.yml b/.github/workflows/remove-unused-assets.yml index ff841ae5ce18..15a6d7f5dfa0 100644 --- a/.github/workflows/remove-unused-assets.yml +++ b/.github/workflows/remove-unused-assets.yml @@ -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 }} diff --git a/.github/workflows/update-graphql-files.yml b/.github/workflows/update-graphql-files.yml index b8082a636bb7..e25de2665a56 100644 --- a/.github/workflows/update-graphql-files.yml +++ b/.github/workflows/update-graphql-files.yml @@ -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 }} @@ -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