use Actions merge_group event
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
2
.github/workflows/link-check-all.yml
vendored
2
.github/workflows/link-check-all.yml
vendored
@@ -6,10 +6,10 @@ name: 'Link Checker: All English'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
merge_group:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- gh-readonly-queue/main/**
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
|
||||
4
.github/workflows/repo-freeze-check.yml
vendored
4
.github/workflows/repo-freeze-check.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -6,10 +6,8 @@ name: Node.js Tests
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
merge_group:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- gh-readonly-queue/main/**
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user