@@ -214,34 +214,6 @@ jobs:
214214 env :
215215 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
216216
217- - name : Post job results to Slack if the workflow failed
218- if : failure() && steps.check_pr.outputs.is_pr == 'false'
219- id : slack-report-failure
220- uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
221- with :
222- token : ${{ secrets.SON_OF_JEEVES_TOKEN }}
223- method : chat.postMessage
224- payload : |
225- # Slack channel id, channel name, or user id to post message.
226- # See also: https://api.slack.com/methods/chat.postMessage#channels
227- # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
228- channel: 'e2e-ci-results'
229- text: "*e2e-nvidia-l40s-x4* job in *${{ github.repository }}* running on branch `${{ steps.check_pr.outputs.pr_or_branch }}` completed *with failures* :meow_sad-rain: | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
230-
231- - name : Post job results to Slack if the workflow succeeded
232- if : success() && steps.check_pr.outputs.is_pr == 'false'
233- id : slack-report-success
234- uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
235- with :
236- token : ${{ secrets.SON_OF_JEEVES_TOKEN }}
237- method : chat.postMessage
238- payload : |
239- # Slack channel id, channel name, or user id to post message.
240- # See also: https://api.slack.com/methods/chat.postMessage#channels
241- # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
242- channel: 'e2e-ci-results'
243- text: "*e2e-nvidia-l40s-x4* job in *${{ github.repository }}* running on branch `${{ steps.check_pr.outputs.pr_or_branch }}` completed *successfully* :meow_party: | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
244-
245217 - name : Send Discord notification for failure
246218 if : failure() && steps.check_pr.outputs.is_pr == 'false'
247219 uses : sarisia/actions-status-discord@5ddd3b114a98457dd80a39b2f00b6a998cd69008 # v1.15.3
0 commit comments