From fbbe6ca83d618d6811fa71f54f5585f1ea50ac66 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Sat, 5 Apr 2025 20:56:51 +0200 Subject: [PATCH] Actualiser .gitea/workflows/check-release.yaml --- .gitea/workflows/check-release.yaml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/check-release.yaml b/.gitea/workflows/check-release.yaml index b8d516c..038eec4 100644 --- a/.gitea/workflows/check-release.yaml +++ b/.gitea/workflows/check-release.yaml @@ -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'