Actualiser .gitea/workflows/check-release.yaml
All checks were successful
Check Calibre-web version / check-version (push) Successful in 14s
All checks were successful
Check Calibre-web version / check-version (push) Successful in 14s
This commit is contained in:
@@ -10,21 +10,12 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install curl
|
||||
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
|
||||
- name: Retrieve Calibre-web version
|
||||
run: |
|
||||
curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]' > calibre_web_latest.txt
|
||||
shell: bash
|
||||
- name: Log On Haoma
|
||||
shell: bash
|
||||
curl -s https://api.github.com/repos/janeczku/calibre-web/releases/latest \
|
||||
| jq -r .tag_name > calibre_web_latest.txt
|
||||
shell: bash
|
||||
- name: Send version to Haoma
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 --data-binary @calibre_web_latest.txt \
|
||||
'https://haoma.petite-maison-orange.fr/ping/933b9d63-37e1-42a7-9681-241af9c582f1'
|
||||
|
||||
curl -fsS -m 10 --retry 5 --data-binary @calibre_web_latest.txt \
|
||||
'https://haoma.petite-maison-orange.fr/ping/933b9d63-37e1-42a7-9681-241af9c582f1'
|
||||
|
||||
Reference in New Issue
Block a user