Skip to content

Commit bbb51ca

Browse files
committed
Build/Test Tools: Re-add Slack notices for E2E workflow.
This re-adds Slack notices for the E2E workflow in the 6.0 branch. These were mistakenly removed in [58357]. See #61733, #61213. git-svn-id: https://develop.svn.wordpress.org/branches/6.0@58793 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7ef2ad2 commit bbb51ca

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/end-to-end-tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ jobs:
5050
php-version: '8.0'
5151
install-gutenberg: false
5252

53+
slack-notifications:
54+
name: Slack Notifications
55+
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
56+
permissions:
57+
actions: read
58+
contents: read
59+
needs: [ e2e-tests ]
60+
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
61+
with:
62+
calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }}
63+
secrets:
64+
SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
65+
SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
66+
SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
67+
SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
68+
5369
failed-workflow:
5470
name: Failed workflow tasks
5571
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)