File tree 2 files changed +12
-13
lines changed
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -126,15 +126,15 @@ jobs:
126
126
env :
127
127
JOB : ${{ toJson( job ) }}
128
128
129
- # slack-notifications:
130
- # name: Slack Notifications
131
- # uses: desrosj/wordpress-develop/.github/workflows/slack-notifications.yml@master
132
- # needs: [ phpcs, jshint ]
133
- # if: ${{ always() }}
134
- # with:
135
- # calling_status: ${{ needs.phpcs.result == 'success' && needs.jshint.result == 'success' && 'success' || ( needs.phpcs.result == 'cancelled' || needs.jshint.result == 'cancelled' ) && 'cancelled' || 'failure' }}
136
- # secrets:
137
- # SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
138
- # SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
139
- # SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
140
- # SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
129
+ slack-notifications :
130
+ name : Slack Notifications
131
+ uses : desrosj/wordpress-develop/.github/workflows/slack-notifications.yml@master
132
+ needs : [ phpcs, jshint ]
133
+ if : ${{ always() }}
134
+ with :
135
+ calling_status : ${{ needs.phpcs.result == 'success' && needs.jshint.result == 'success' && 'success' || ( needs.phpcs.result == 'cancelled' || needs.jshint.result == 'cancelled' ) && 'cancelled' || 'failure' }}
136
+ secrets :
137
+ SLACK_GHA_SUCCESS_WEBHOOK : ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
138
+ SLACK_GHA_CANCELLED_WEBHOOK : ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
139
+ SLACK_GHA_FIXED_WEBHOOK : ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
140
+ SLACK_GHA_FAILURE_WEBHOOK : ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
Original file line number Diff line number Diff line change 19
19
types :
20
20
- completed
21
21
branches :
22
- - master
23
22
- ' [3-4].[0-9]'
24
23
- ' 5.[0-8]'
25
24
You can’t perform that action at this time.
0 commit comments