CI tweaks
All checks were successful
CI / test (push) Successful in 43s
Lint / test (push) Successful in 25s
Trivy / test (push) Successful in 24s

This commit is contained in:
Miguel Jacq 2025-12-03 18:06:32 +11:00
parent 36682c4020
commit 72deb1dc1f
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
4 changed files with 42 additions and 1 deletions

View file

@ -30,3 +30,16 @@ jobs:
run: |
./tests.sh
# Notify if any previous step in this job failed
- name: Notify on failure
if: ${{ failure() }}
env:
WEBHOOK_URL: ${{ secrets.NODERED_WEBHOOK_URL }}
REPOSITORY: ${{ forgejo.repository }}
RUN_NUMBER: ${{ forgejo.run_number }}
SERVER_URL: ${{ forgejo.server_url }}
run: |
curl -X POST \
-H "Content-Type: application/json" \
-d "{\"repository\":\"$REPOSITORY\",\"run_number\":\"$RUN_NUMBER\",\"status\":\"failure\",\"url\":\"$SERVER_URL/$REPOSITORY/actions/runs/$RUN_NUMBER\"}" \
"$WEBHOOK_URL"