mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-28 01:04:35 +00:00
Build/Test Tools: Use the correct workflow name in notifications on workflow_run.
When a workflow is triggered through a `workflow_run` event, the context is not the original workflow. The details about the original workflow are passed through the `github.event` context. This also moves the conditional check controlling whether the Slack workflow is run into the calling workflows to prevent them from running for pull requests. Follow up to [51921-51922,51924-51925,51934]. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51937 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
2
.github/workflows/javascript-tests.yml
vendored
2
.github/workflows/javascript-tests.yml
vendored
@@ -90,7 +90,7 @@ jobs:
|
||||
name: Slack Notifications
|
||||
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@master
|
||||
needs: [ test-js ]
|
||||
if: ${{ always() }}
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
|
||||
secrets:
|
||||
SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
|
||||
SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
|
||||
|
||||
Reference in New Issue
Block a user