1
0
Fork 0

CI
Some checks failed
CI / build-deb (push) Failing after 32s

This commit is contained in:
Miguel Jacq 2025-12-09 15:55:45 +11:00
parent 2aafefafb2
commit 35806f9853
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
4 changed files with 218 additions and 0 deletions

View file

@ -0,0 +1,32 @@
name: CI
on:
push:
jobs:
build-deb:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./
with:
php-version: '7.4'
sqlcipher-version: '4.12.0'
tz: 'UTC'
- 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"