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

This commit is contained in:
2025-04-05 20:56:51 +02:00
parent 1303ad60a4
commit fbbe6ca83d

View File

@@ -10,21 +10,12 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install curl - name: Retrieve Calibre-web version
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: curl awk
version: 1.0
shell: bash
run: sudo apt-get install -y curl awk
- name: retrieve Calibre-web version
run: | run: |
curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \ curl -s https://api.github.com/repos/janeczku/calibre-web/releases/latest \
| awk '/tag_name/{print $4;exit}' FS='[""]' > calibre_web_latest.txt | jq -r .tag_name > calibre_web_latest.txt
shell: bash shell: bash
- name: Log On Haoma - name: Send version to Haoma
shell: bash
run: | run: |
curl -fsS -m 10 --retry 5 --data-binary @calibre_web_latest.txt \ curl -fsS -m 10 --retry 5 --data-binary @calibre_web_latest.txt \
'https://haoma.petite-maison-orange.fr/ping/933b9d63-37e1-42a7-9681-241af9c582f1' 'https://haoma.petite-maison-orange.fr/ping/933b9d63-37e1-42a7-9681-241af9c582f1'