diff --git a/.github/workflows/semantic_diff.yml b/.github/workflows/semantic_diff.yml index aa12a9b83c..696e485e9b 100644 --- a/.github/workflows/semantic_diff.yml +++ b/.github/workflows/semantic_diff.yml @@ -18,6 +18,10 @@ name: Semantic Diff # executes only the default branch's code, and the fork's commits are # fetched as git data and never checked out. # +# Maintenance branches have no renderer, so a pull request from a fork into +# one of them doesn't run this workflow. One from a branch of this +# repository doesn't either, since the merge has no workflow. +# # Pages are never deleted, so the links in the comments stay valid after a # pull request is merged or closed. @@ -26,6 +30,7 @@ on: types: [opened, synchronize, reopened] pull_request_target: types: [opened, synchronize, reopened] + branches-ignore: ["maintenance/**"] concurrency: group: semantic-diff-${{ github.event_name }}-${{ github.event.pull_request.number }} diff --git a/changes/semantic-diff-maintenance-branches.internal.md b/changes/semantic-diff-maintenance-branches.internal.md new file mode 100644 index 0000000000..a718203b84 --- /dev/null +++ b/changes/semantic-diff-maintenance-branches.internal.md @@ -0,0 +1 @@ +- Skip the Semantic Diff workflow for fork pull requests into maintenance branches, which have no renderer.