From 930c60de1547ba5c4afde514814ea133b996b9e9 Mon Sep 17 00:00:00 2001 From: Evan Bonsignori Date: Thu, 5 Jan 2023 13:38:12 -0800 Subject: [PATCH] Don't try to deploy for dependabot PRs (#33774) --- .github/workflows/azure-preview-env-deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/azure-preview-env-deploy.yml b/.github/workflows/azure-preview-env-deploy.yml index 24832e86276b..f31140f99ad7 100644 --- a/.github/workflows/azure-preview-env-deploy.yml +++ b/.github/workflows/azure-preview-env-deploy.yml @@ -45,7 +45,13 @@ jobs: # Ensure this is actually a pull request and not a merge group # If its a merge group, report success without doing anything # See https://bit.ly/3qB9nZW > If a job in a workflow is skipped due to a conditional, it will report its status as "Success". - if: ((github.event.pull_request.head.sha || github.event.inputs.COMMIT_REF) && (github.event.number || github.event.inputs.PR_NUMBER || github.run_id)) && (github.repository == 'github/docs-internal' || github.repository == 'github/docs') + if: | + ( + (github.event.pull_request.head.sha || github.event.inputs.COMMIT_REF) + && (github.event.number || github.event.inputs.PR_NUMBER || github.run_id) + ) + && (github.repository == 'github/docs-internal' || github.repository == 'github/docs') + && github.actor != 'dependabot[bot]' timeout-minutes: 15 environment: name: preview-env-${{ github.event.number }}