Skip to content

Commit ff0cdf1

Browse files
committed
Update parity.yml
1 parent d64d7d4 commit ff0cdf1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/parity.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
parity:
1313
runs-on: ubuntu-latest
14+
env:
15+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v4
@@ -31,9 +33,7 @@ jobs:
3133
- name: Run parity tests
3234
run: bash scripts/ci/run_parity_tests.sh
3335
- name: Notify Discord on scheduled parity failure
34-
if: failure() && github.event_name == 'schedule' && secrets.DISCORD_WEBHOOK != ''
35-
env:
36-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
36+
if: failure() && github.event_name == 'schedule' && env.DISCORD_WEBHOOK != ''
3737
run: |
3838
run_url="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
3939
payload=$(printf '{"content":"parity cron failed for %s: %s"}' "$GITHUB_REPOSITORY" "$run_url")

0 commit comments

Comments
 (0)