Skip to content

Commit

Permalink
adding new job notify-slack (Xilinx#8019)
Browse files Browse the repository at this point in the history
* adding new job notify-slack on failure

* notify slack depends only on gradle-artifactory-upload job

* notify slack depends on release to all sites and gradle artifactory upload
  • Loading branch information
SubhedarV authored Mar 19, 2024
1 parent 30c2f2a commit 60b35a1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/xrt_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -591,5 +591,16 @@ jobs:
github-server-url: ${{ secrets.SERVER_URL }}
sshKey: ${{ secrets.CI_PRIVATE_SSH_KEY }}
runnerName: ${{ runner.name }}


notify-slack:
needs: [Release_to_all_sites, gradle-artifactory-upload]
runs-on: Ubuntu-22.04
if: always() && contains(needs.*.result, 'failure')
steps:
- name: Notify Slack on failure
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 60b35a1

Please sign in to comment.