Skip to content

Commit 9032926

Browse files
committed
fix: notify slack on master
1 parent 791555d commit 9032926

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/dhis2-verify-lib.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,15 @@ jobs:
194194

195195
send-slack-message:
196196
runs-on: ubuntu-latest
197-
if: ${{ always() && github.ref == 'refs/heads/master' }}
197+
if: |
198+
always() &&
199+
github.ref == 'refs/heads/fix/action-slack'
198200
needs: [build, lint, test, e2e, publish]
199201
steps:
200202
- uses: rtCamp/action-slack-notify@v2
201203
env:
202-
SLACK_WEBHOOK: ${{ secrets.SLACK_BACKEND_WEBHOOK }}
204+
SLACK_USERNAME: '@dhis2-bot'
205+
SLACK_WEBHOOK: ${{ secrets.SLACK_EXTENSIBILITY_WEBHOOK }}
203206
SLACK_CHANNEL: 'team-extensibility-notifications'
204207
SLACK_MESSAGE_ON_FAILURE: 'Master branch failed to build or publish the UI library.'
205-
SLACK_COLOR: ${{ job.status }}
208+
SLACK_COLOR: ${{ env.STATUS_MESSAGE }}

0 commit comments

Comments
 (0)