@@ -191,28 +191,30 @@ jobs:
191191 - name : Post job results to Slack if the workflow failed
192192 if : failure() && steps.check_pr.outputs.is_pr == 'false'
193193 id : slack-report-failure
194- uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27 .0
194+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
195195 with :
196- # Slack channel id, channel name, or user id to post message.
197- # See also: https://api.slack.com/methods/chat.postMessage#channels
198- # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
199- channel-id : ' e2e-ci-results'
200- slack-message : " *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 }}"
201- env :
202- SLACK_BOT_TOKEN : ${{ secrets.SON_OF_JEEVES_TOKEN }}
196+ token : ${{ secrets.SON_OF_JEEVES_TOKEN }}
197+ method : chat.postMessage
198+ payload : |
199+ # Slack channel id, channel name, or user id to post message.
200+ # See also: https://api.slack.com/methods/chat.postMessage#channels
201+ # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
202+ channel: 'e2e-ci-results'
203+ 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 }}"
203204
204205 - name : Post job results to Slack if the workflow succeeded
205206 if : success() && steps.check_pr.outputs.is_pr == 'false'
206207 id : slack-report-success
207- uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27 .0
208+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
208209 with :
209- # Slack channel id, channel name, or user id to post message.
210- # See also: https://api.slack.com/methods/chat.postMessage#channels
211- # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
212- channel-id : ' e2e-ci-results'
213- slack-message : " *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 }}"
214- env :
215- SLACK_BOT_TOKEN : ${{ secrets.SON_OF_JEEVES_TOKEN }}
210+ token : ${{ secrets.SON_OF_JEEVES_TOKEN }}
211+ method : chat.postMessage
212+ payload : |
213+ # Slack channel id, channel name, or user id to post message.
214+ # See also: https://api.slack.com/methods/chat.postMessage#channels
215+ # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
216+ channel: 'e2e-ci-results'
217+ 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 }}"
216218
217219 stop-large-ec2-runner :
218220 needs :
0 commit comments