File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,13 +16,22 @@ jobs:
1616 steps :
1717 - name : Notify slack fail
1818 if : ${{ inputs.job_result == 'failure' && github.repository == 'OpenSIPS/opensips' }}
19- env :
20- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
21- uses : voxmedia/github-action-slack-notify-build@v1
19+ uses : slackapi/slack-github-action@v3.0.3
2220 with :
23- channel : devel
24- status : FAILED
25- color : danger
21+ method : chat.postMessage
22+ token : ${{ secrets.SLACK_BOT_TOKEN }}
23+ payload : |
24+ channel: devel
25+ text: ":x: ${{ inputs.job_name }} failed in ${{ github.repository }}"
26+ blocks:
27+ - type: section
28+ text:
29+ type: mrkdwn
30+ text: ":x: *${{ inputs.job_name }}* failed in *${{ github.repository }}*"
31+ - type: context
32+ elements:
33+ - type: mrkdwn
34+ text: "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Open this run in GitHub Actions>"
2635
2736 - name : Post Fail
2837 if : ${{ inputs.job_result == 'failure' }}
You can’t perform that action at this time.
0 commit comments