From 2e766a9c7a0888a96ed9108f09a085f4298af0b3 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Fri, 7 Apr 2023 16:37:06 +1000 Subject: Add Discord webhook at end of each CI run. (#20355) --- .github/workflows/ci_builds.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci_builds.yml b/.github/workflows/ci_builds.yml index ce2d0b509e..366b5e0dde 100644 --- a/.github/workflows/ci_builds.yml +++ b/.github/workflows/ci_builds.yml @@ -10,12 +10,11 @@ on: jobs: ci_builds: + if: github.repository == 'qmk/qmk_firmware' name: "CI Build" runs-on: self-hosted timeout-minutes: 1380 - if: github.repository == 'qmk/qmk_firmware' - strategy: fail-fast: false matrix: @@ -58,3 +57,12 @@ jobs: *.hex *.uf2 .build/failed.* + + - name: 'CI Discord Notification' + if: always() + working-directory: util/ci/ + env: + DISCORD_WEBHOOK: ${{ secrets.CI_DISCORD_WEBHOOK }} + run: | + python3 -m pip install -r requirements.txt + python3 ./discord-results.py --branch ${{ matrix.branch }} --keymap ${{ matrix.keymap }} --url ${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}/actions/runs/${{ env.GITHUB_RUN_ID }} -- cgit v1.2.3