diff options
| author | Nick Brassel <nick@tzarc.org> | 2024-07-12 10:19:33 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-12 01:19:33 +0100 |
| commit | 4d4d7b76b04536e022262e832200a83ebcd8f8de (patch) | |
| tree | a8520de95d155ada10e5093388ae34d884eec188 /.github/workflows | |
| parent | c58c5fa8fabba173de631ee8f38d907c70f5457f (diff) | |
[CI] Disable Discord webhook when CI run is cancelled. (#24104)
* Disable Discord webhook when CI run is cancelled.
* Include link to binaries in Discord output.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci_build_major_branch_keymap.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci_build_major_branch_keymap.yml b/.github/workflows/ci_build_major_branch_keymap.yml index 0804c9e2d0..2e0f3036a3 100644 --- a/.github/workflows/ci_build_major_branch_keymap.yml +++ b/.github/workflows/ci_build_major_branch_keymap.yml | |||
| @@ -172,10 +172,10 @@ jobs: | |||
| 172 | targets-${{ inputs.keymap }} | 172 | targets-${{ inputs.keymap }} |
| 173 | 173 | ||
| 174 | - name: 'CI Discord Notification' | 174 | - name: 'CI Discord Notification' |
| 175 | if: always() | 175 | if: always() && !cancelled() |
| 176 | working-directory: util/ci/ | 176 | working-directory: util/ci/ |
| 177 | env: | 177 | env: |
| 178 | DISCORD_WEBHOOK: ${{ secrets.CI_DISCORD_WEBHOOK }} | 178 | DISCORD_WEBHOOK: ${{ secrets.CI_DISCORD_WEBHOOK }} |
| 179 | run: | | 179 | run: | |
| 180 | python3 -m pip install -r requirements.txt | 180 | python3 -m pip install -r requirements.txt |
| 181 | python3 ./discord-results.py --branch ${{ inputs.branch || github.ref_name }} --keymap ${{ inputs.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | 181 | python3 ./discord-results.py --branch ${{ inputs.branch || github.ref_name }} --sha $(git rev-parse HEAD) --keymap ${{ inputs.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
