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'