WordPress.org

Make WordPress Core

Changeset 51558


Ignore:
Timestamp:
08/05/2021 04:52:51 PM (4 months ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/slack-notifications.yml

    r51555 r51558  
    1818    types:
    1919      - completed
     20    branches:
     21      - master
     22      - trunk
     23      - '[3-9].[0-9]'
    2024
    2125jobs:
     
    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 }}
Note: See TracChangeset for help on using the changeset viewer.