summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-04-07 16:37:06 +1000
committerGitHub <noreply@github.com>2023-04-07 16:37:06 +1000
commit2e766a9c7a0888a96ed9108f09a085f4298af0b3 (patch)
treed86e18bb456c656a2578b9afa98fa11fe4109de3 /.github/workflows
parent4ba3fdfad2bd52e2807d18606db1c12192304fd5 (diff)
Add Discord webhook at end of each CI run. (#20355)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci_builds.yml12
1 files changed, 10 insertions, 2 deletions
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 }}