commit fc43996708b82800b227d3c6591f707542ce6b75 Author: Eric Coissac Date: Sat Apr 5 20:32:32 2025 +0200 Ajouter .gitea/workflows/check-release.yaml diff --git a/.gitea/workflows/check-release.yaml b/.gitea/workflows/check-release.yaml new file mode 100644 index 0000000..c51f63f --- /dev/null +++ b/.gitea/workflows/check-release.yaml @@ -0,0 +1,20 @@ +name: Check Calibre-web version +on: + schedule: + - cron: "* * * * *" + +jobs: + check-version: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install curl + run: sudo apt install -y curl + - 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 + 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' +