diff --git a/.github/workflows/azure-preview-env-deploy.yml b/.github/workflows/azure-preview-env-deploy.yml index 2bd80f627a..b103ec6afe 100644 --- a/.github/workflows/azure-preview-env-deploy.yml +++ b/.github/workflows/azure-preview-env-deploy.yml @@ -17,6 +17,7 @@ on: # unlike 'pull_request_target', these only have secrets if the pull # request creator has permission to access secrets. pull_request_target: + merge_group: workflow_dispatch: inputs: PR_NUMBER: @@ -27,9 +28,6 @@ on: description: 'The commit SHA to build' type: string required: true - push: - branches: - - gh-readonly-queue/main/** permissions: contents: read @@ -200,7 +198,7 @@ jobs: - name: Run ARM deploy # This 'if' will be truth, if this workflow is... # - run as a workflow_dispatch - # - run because of a push to main (or gh-readonly-queue/main) + # - run because of a push to main (or when added to a merge queue) # - run as a regular pull request # But if it's a pull request, *and* for whatever reason, the pull # request has "Auto-merge" enabled, don't bother. diff --git a/.github/workflows/dry-run-elasticsearch-indexing.yml b/.github/workflows/dry-run-elasticsearch-indexing.yml index 86bdf6f8ba..06b62ce42b 100644 --- a/.github/workflows/dry-run-elasticsearch-indexing.yml +++ b/.github/workflows/dry-run-elasticsearch-indexing.yml @@ -5,9 +5,7 @@ name: Dry run Elasticsearch indexing # **Who does it impact**: Docs engineering. on: - push: - branches: - - gh-readonly-queue/main/** + merge_group: pull_request: paths: - script/search/index-elasticsearch.mjs diff --git a/.github/workflows/link-check-all.yml b/.github/workflows/link-check-all.yml index 38c615312f..5c51fa0069 100644 --- a/.github/workflows/link-check-all.yml +++ b/.github/workflows/link-check-all.yml @@ -6,10 +6,10 @@ name: 'Link Checker: All English' on: workflow_dispatch: + merge_group: push: branches: - main - - gh-readonly-queue/main/** pull_request: permissions: diff --git a/.github/workflows/repo-freeze-check.yml b/.github/workflows/repo-freeze-check.yml index a680269f41..4be314879c 100644 --- a/.github/workflows/repo-freeze-check.yml +++ b/.github/workflows/repo-freeze-check.yml @@ -6,6 +6,7 @@ name: Repo Freeze Check on: workflow_dispatch: + merge_group: pull_request_target: types: - opened @@ -15,9 +16,6 @@ on: - unlocked branches: - main - push: - branches: - - gh-readonly-queue/main/** permissions: contents: none diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index df10beb410..fd05cb92a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,8 @@ name: Node.js Tests on: workflow_dispatch: + merge_group: pull_request: - push: - branches: - - gh-readonly-queue/main/** permissions: contents: read diff --git a/.github/workflows/triage-unallowed-internal-changes.yml b/.github/workflows/triage-unallowed-internal-changes.yml index 45bc281c32..b1ba9895da 100644 --- a/.github/workflows/triage-unallowed-internal-changes.yml +++ b/.github/workflows/triage-unallowed-internal-changes.yml @@ -5,6 +5,7 @@ name: Check for unallowed internal changes # **Who does it impact**: Docs engineering and content writers. on: + merge_group: pull_request: types: - labeled @@ -12,9 +13,6 @@ on: - opened - reopened - synchronize - push: - branches: - - gh-readonly-queue/main/** permissions: # This is needed by dorny/paths-filter diff --git a/content/actions/examples/using-concurrency-expressions-and-a-test-matrix.md b/content/actions/examples/using-concurrency-expressions-and-a-test-matrix.md index 7d14b8bd72..bd3fd55f70 100644 --- a/content/actions/examples/using-concurrency-expressions-and-a-test-matrix.md +++ b/content/actions/examples/using-concurrency-expressions-and-a-test-matrix.md @@ -27,7 +27,7 @@ topics: {% data reusables.actions.example-table-intro %} | **Feature** | **Implementation** | -| --- | --- | +| --- | --- | {% data reusables.actions.workflow-dispatch-table-entry %} {% data reusables.actions.pull-request-table-entry %} {% data reusables.actions.cron-table-entry %} @@ -66,10 +66,8 @@ name: Node.js Tests on: workflow_dispatch: + merge_group: pull_request: - push: - branches: - - gh-readonly-queue/main/** permissions: contents: read @@ -277,12 +275,12 @@ Add the `pull_request` event, so that the workflow runs automatically every time ```yaml{:copy} push: branches: - - gh-readonly-queue/main/** + - main ```