32 lines
840 B
YAML
32 lines
840 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build-deb:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
uses: ./
|
|
with:
|
|
php-version: '8.2'
|
|
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"
|