File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 6969 name : ${{matrix.env_name}}
7070 path : " ./"
7171
72+ - name : Send a notification if token generation step failed
73+ if : ${{ steps.generate-token.outcome == 'failure' }}
74+ uses : 8398a7/action-slack@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3.19.0
75+ with :
76+ status : custom
77+ custom_payload : |
78+ {
79+ username: 'Github',
80+ mention: 'channel',
81+ attachments: [{
82+ title: '[${{ github.event.repository.full_name }}] ${{ github.workflow }} pipeline has failed. Token generation for environment ${{matrix.env_name}}',
83+ color: 'danger',
84+ fields: [{
85+ title: 'Commit',
86+ "value": "<https://github.com/${{ github.repository }}/commit/${{ github.event.workflow_run.head_commit.id }}|${{ github.event.workflow_run.head_commit.message }}>",
87+ short: false
88+ },
89+ {
90+ title: 'Pipeline URL',
91+ value: '<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}',
92+ short: false
93+ }]
94+ }]
95+ }
96+ env :
97+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL_DOCS_INCIDENT }}
98+
99+
72100 push-tokens-to-azure :
73- name : Push coveo search tokens to Azure
101+ name : Batch push coveo search tokens to Azure
74102 runs-on : ubuntu-latest
75103 needs : generate-coveo-search-token
76104 steps :
You can’t perform that action at this time.
0 commit comments