Actualiser .gitea/workflows/check-release.yaml
All checks were successful
Check Calibre-web version / check-version (push) Successful in 15s

This commit is contained in:
2025-04-05 21:18:17 +02:00
parent ca3eb9f6f6
commit 56b0b1abd0

View File

@@ -8,6 +8,9 @@ jobs:
check-version: check-version:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -25,6 +28,10 @@ jobs:
- name: Check if version changed - name: Check if version changed
uses: stefanzweifel/git-auto-commit-action@v5 uses: stefanzweifel/git-auto-commit-action@v5
id: auto-commit-action id: auto-commit-action
commit_user_name: My Gitea Actions Bot
commit_user_email: eric@petite-maison-orange.fr
commit_author: Gitea Action <servers@coissac.eu> # defaults to "username <numeric_id+username@users.noreply.github.com>", where "numeric_id" and "username" belong to the author of the commit that triggered the run
commit_message: New calibre-web version avalaible
- name: Send new version to Haoma - name: Send new version to Haoma
if: steps.auto-commit-action.outputs.changes_detected == 'true' if: steps.auto-commit-action.outputs.changes_detected == 'true'
@@ -34,7 +41,7 @@ jobs:
'https://haoma.petite-maison-orange.fr/ping/933b9d63-37e1-42a7-9681-241af9c582f1' 'https://haoma.petite-maison-orange.fr/ping/933b9d63-37e1-42a7-9681-241af9c582f1'
shell: bash shell: bash
- name: Send no version to Haoma - name: Send no version to Haoma
if: steps.auto-commit-action.outputs.changes_detected == 'true' if: steps.auto-commit-action.outputs.changes_detected == 'false'
run: | run: |
curl -fsS -m 10 --retry 5 \ curl -fsS -m 10 --retry 5 \
--data-raw "No version avalaible stay on $(cat calibre_web_latest.txt)" \ --data-raw "No version avalaible stay on $(cat calibre_web_latest.txt)" \