Skip to content

Commit a295a81

Browse files
committed
update slack in workflows
1 parent 75849a7 commit a295a81

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@ jobs:
6262
tests-e2e/playwright-report/
6363
tests-e2e/site/storage/logs/
6464
retention-days: 30
65-
- uses: 8398a7/action-slack@v3
65+
- name: Notify Slack on failure
66+
uses: code16/.github/.github/actions/slack-notify-failure@main
6667
if: failure() && github.event_name == 'push'
6768
with:
68-
status: ${{ job.status }}
69-
fields: job, message, author, repo
70-
env:
71-
MATRIX_CONTEXT: ${{ toJson(matrix) }}
72-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
69+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
70+
slack-channel-id: ${{ secrets.SLACK_CHANNEL_ID }}

.github/workflows/tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ jobs:
6666
run: composer audit
6767
- name: Execute tests via Pest
6868
run: ./vendor/bin/pest --parallel
69-
- uses: 8398a7/action-slack@v2.4.0
69+
- name: Notify Slack on failure
70+
uses: code16/.github/.github/actions/slack-notify-failure@main
7071
if: failure() && github.event_name == 'push'
7172
with:
72-
status: failure
73-
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
73+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
74+
slack-channel-id: ${{ secrets.SLACK_CHANNEL_ID }}

0 commit comments

Comments
 (0)