Actualiser .gitea/workflows/check-release.yaml
All checks were successful
Check Calibre-web version / check-version (push) Successful in 15s
All checks were successful
Check Calibre-web version / check-version (push) Successful in 15s
This commit is contained in:
@@ -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 <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
|
||||
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)" \
|
||||
|
||||
Reference in New Issue
Block a user