Skip to content

Commit 507f8c4

Browse files
committed
fix(ci): fix ci lint
1 parent 0890b73 commit 507f8c4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/common-testing.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/npm-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ jobs:
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 }}

0 commit comments

Comments
 (0)