From 56b0b1abd0f954000edfca2e63e765a7ebf062e2 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Sat, 5 Apr 2025 21:18:17 +0200 Subject: [PATCH] Actualiser .gitea/workflows/check-release.yaml --- .gitea/workflows/check-release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/check-release.yaml b/.gitea/workflows/check-release.yaml index 6946da8..0a926da 100644 --- a/.gitea/workflows/check-release.yaml +++ b/.gitea/workflows/check-release.yaml @@ -8,6 +8,9 @@ jobs: check-version: runs-on: ubuntu-latest + permissions: + contents: write + steps: - name: Checkout code uses: actions/checkout@v4 @@ -25,6 +28,10 @@ jobs: - name: Check if version changed uses: stefanzweifel/git-auto-commit-action@v5 id: auto-commit-action + commit_user_name: My Gitea Actions Bot + commit_user_email: eric@petite-maison-orange.fr + commit_author: Gitea Action # defaults to "username ", 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 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' shell: bash - 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: | curl -fsS -m 10 --retry 5 \ --data-raw "No version avalaible stay on $(cat calibre_web_latest.txt)" \