There was an error while loading. Please reload this page.
1 parent d64d7d4 commit ff0cdf1Copy full SHA for ff0cdf1
1 file changed
.github/workflows/parity.yml
@@ -11,6 +11,8 @@ on:
11
jobs:
12
parity:
13
runs-on: ubuntu-latest
14
+ env:
15
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
16
steps:
17
- name: Checkout
18
uses: actions/checkout@v4
@@ -31,9 +33,7 @@ jobs:
31
33
- name: Run parity tests
32
34
run: bash scripts/ci/run_parity_tests.sh
35
- name: Notify Discord on scheduled parity failure
- if: failure() && github.event_name == 'schedule' && secrets.DISCORD_WEBHOOK != ''
- env:
36
- DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+ if: failure() && github.event_name == 'schedule' && env.DISCORD_WEBHOOK != ''
37
run: |
38
run_url="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
39
payload=$(printf '{"content":"parity cron failed for %s: %s"}' "$GITHUB_REPOSITORY" "$run_url")
0 commit comments