Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul-Biju committed May 30, 2024
1 parent 15d8dda commit 9c0f915
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,16 @@ jobs:
name: ${{ matrix.reportName }}
path: |
liberty-tools-intellij/build/reports/
slack-notification:
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: 'Slack Notification'
run: |
STATUS=$([[ ${{ needs.build.result }} == "success" ]] && echo "succeeded" || echo "failed")
curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"Workflow ${{ github.workflow }} triggered by branch ${{ github.ref }}. Build results: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}. Status: $STATUS\"}" $SLACK_WEBHOOK_URL
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
shell: bash

0 comments on commit 9c0f915

Please sign in to comment.