File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -299,17 +299,19 @@ jobs:
299299 RUST_BACKTRACE=full cargo test ${ARGS_TESTS:+$ARGS_TESTS}
300300
301301 - name : Post a message in a channel
302- uses : slackapi/slack-github-action@v2.1.1
302+ uses : slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
303+ env :
304+ ACTION_RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
303305 with :
304306 webhook : ${{ secrets.SLACK_WEBHOOK_URL }}
305307 webhook-type : incoming-webhook
306308 payload : |
307- text: "*GitHub Action tests result*: ${{ steps.tests.outcome }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
309+ text: "*GitHub Action tests result*: ${{ steps.tests.outcome }}\n${{ env.ACTION_RUN_URL }}"
308310 blocks:
309311 - type: "section"
310312 text:
311313 type: "mrkdwn"
312- text: "GitHub Action tests result: ${{ steps.tests.outcome }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
314+ text: "GitHub Action tests result: ${{ steps.tests.outcome }}\n${{ env.ACTION_RUN_URL }}"
313315
314316 - name : Generate unique ID
315317 id : unique-id
Original file line number Diff line number Diff line change 2929 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3030 AWS_ACCESS_KEY_S3_USER : ${{ secrets.AWS_ACCESS_KEY_S3_USER }}
3131 AWS_SECRET_KEY_S3_USER : ${{ secrets.AWS_SECRET_KEY_S3_USER }}
32+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments