Skip to content

Commit b2f6adc

Browse files
ci: notify on failures again
1 parent 370a2f5 commit b2f6adc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/clojure.yml

+13
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: DeterminateSystems/nix-installer-action@main
2121
- run: nix develop -c lein codox
22+
23+
notify-test-failures:
24+
runs-on: ubuntu-latest
25+
needs: [test, codox]
26+
if: failure()
27+
steps:
28+
- env:
29+
SECRET: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
30+
CHANNEL: "active-clojure"
31+
USERNAME: "GitHub"
32+
run: |
33+
URL=https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}
34+
curl -i --data-urlencode "payload={\"channel\":\"${CHANNEL}\", \"username\":\"${USERNAME}\",\"text\":\"Failure in tests: ${URL}\"}" ${SECRET}

0 commit comments

Comments
 (0)