diff --git a/.github/workflows/build-plugin-zip.yml b/.github/workflows/build-plugin-zip.yml index 27078a7ee977c2..85752b070b6b0b 100644 --- a/.github/workflows/build-plugin-zip.yml +++ b/.github/workflows/build-plugin-zip.yml @@ -5,8 +5,10 @@ on: push: branches: - trunk - - 'release/**' - - 'wp/**' + - 'release/[0-9]+.[0-9]' + - 'wp/[0-9]+.[0-9]' + - wp/latest + - wp/next workflow_dispatch: inputs: version: diff --git a/.github/workflows/create-block.yml b/.github/workflows/create-block.yml index 5f6b0945179222..33b9198f8e2dd0 100644 --- a/.github/workflows/create-block.yml +++ b/.github/workflows/create-block.yml @@ -3,7 +3,12 @@ name: Create Block on: pull_request: push: - branches: [trunk, wp/latest] + branches: + - trunk + - 'release/[0-9]+.[0-9]' + - 'wp/[0-9]+.[0-9]' + - wp/latest + - wp/next # Cancels all previous workflow runs for pull requests that have not completed. concurrency: diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index 69807c1bdd3fd9..26b9bed2948881 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -5,8 +5,10 @@ on: push: branches: - trunk - - 'release/**' - - 'wp/**' + - 'release/[0-9]+.[0-9]' + - 'wp/[0-9]+.[0-9]' + - wp/latest + - wp/next # Cancels all previous workflow runs for pull requests that have not completed. concurrency: diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index ddf29edc19fc22..4bc9cc193ffb48 100644 --- a/.github/workflows/pull-request-automation.yml +++ b/.github/workflows/pull-request-automation.yml @@ -2,6 +2,8 @@ on: pull_request_target: types: [opened] push: + branches: + - trunk name: Pull request automation # Disable permissions for all available scopes by default. diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index c1a6c676e3fcf0..bcbf93314f8c02 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -5,8 +5,10 @@ on: push: branches: - trunk - - 'release/**' - - 'wp/**' + - 'release/[0-9]+.[0-9]' + - 'wp/[0-9]+.[0-9]' + - wp/latest + - wp/next # Cancels all previous workflow runs for pull requests that have not completed. concurrency: diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index a0c87a670c60d8..7f06dcc45812cc 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -5,8 +5,10 @@ on: push: branches: - trunk - - 'release/**' - - 'wp/**' + - 'release/[0-9]+.[0-9]' + - 'wp/[0-9]+.[0-9]' + - wp/latest + - wp/next # Allow manually triggering the workflow. workflow_dispatch: diff --git a/.github/workflows/workflow-lint.yml b/.github/workflows/workflow-lint.yml index fa11fa1c3673bf..d9b3c6e30b54c7 100644 --- a/.github/workflows/workflow-lint.yml +++ b/.github/workflows/workflow-lint.yml @@ -4,6 +4,10 @@ on: push: branches: - trunk + - 'release/[0-9]+.[0-9]' + - 'wp/[0-9]+.[0-9]' + - wp/latest + - wp/next paths: # Only run when changes are made to workflow files. - '.github/workflows/**' @@ -11,8 +15,6 @@ on: - 'packages/**/action.yml' - 'tools/**/action.yml' pull_request: - branches: - - trunk paths: # Only run when changes are made to workflow files. - '.github/workflows/**'