Skip to content

Commit 00140db

Browse files
committed
Build/Test Tools: Add branch filtering for Slack notifications workflow.
Since branch filtering happens prior to the workflow run being created, filtering the branches that `workflow_run` will fire on for this workflow should cut down on the number of skipped “Slack Notifications” runs listed in the Actions section of the repository. This also removes the check for a `skipped` outcome in the requesting workflow. Workflows for push events resulting from WordPress Core commits are never skipped. See #52644. git-svn-id: https://develop.svn.wordpress.org/trunk@51558 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 16848d5 commit 00140db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/slack-notifications.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
- Test old branches
1818
types:
1919
- completed
20+
branches:
21+
- master
22+
- trunk
23+
- '[3-9].[0-9]'
2024

2125
jobs:
2226
# Gathers the details needed for Slack notifications.
@@ -31,7 +35,7 @@ jobs:
3135
prepare:
3236
name: Prepare notifications
3337
runs-on: ubuntu-latest
34-
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event.workflow_run.conclusion != 'skipped' && github.event.workflow_run.event != 'pull_request' }}
38+
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event.workflow_run.event != 'pull_request' }}
3539
outputs:
3640
previous_conclusion: ${{ steps.previous-conclusion.outputs.previous_conclusion }}
3741
payload: ${{ steps.create-payload.outputs.payload }}

0 commit comments

Comments
 (0)