Skip to content

Commit c85a0c2

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

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

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

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

0 commit comments

Comments
 (0)