From e22420d7c21482a0eca2cf483683e918f0b08e5d Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 5 Jul 2024 20:31:23 +0200 Subject: [PATCH] .gitea/workflows/update-check.yml aktualisiert --- .gitea/workflows/{release.yml => update-check.yml} | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) rename .gitea/workflows/{release.yml => update-check.yml} (92%) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/update-check.yml similarity index 92% rename from .gitea/workflows/release.yml rename to .gitea/workflows/update-check.yml index 4701855..20fb7ef 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/update-check.yml @@ -1,14 +1,13 @@ -name: release +name: Pagefind Update Check on: push: - branches: - - main + branches: [main] schedule: - - cron: '@hourly' + - cron: '@daily' jobs: - release: + update-check: runs-on: act-runner-user steps: - name: check pagefind version @@ -18,7 +17,7 @@ jobs: export CURRENT_PAGEFIND_RELEASE=$(curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} https://git.cantorgymnasium.de/api/v1/packages/gcg | jq -r 'map(select( .name | contains("pagefind"))) | .[0].version') echo update_available=$(! [[ $NEWEST_PAGEFIND_RELEASE != $CURRENT_PAGEFIND_RELEASE ]]; echo $?) >> $GITHUB_OUTPUT - - name: update hugo package + - name: update pagefind package if: steps.check.outputs.update_available == 1 run: | export NEWEST_PAGEFIND_RELEASE=$(curl -s https://api.github.com/repos/CloudCannon/pagefind/releases | jq -r '.[0].name') @@ -37,4 +36,4 @@ jobs: if: steps.check.outputs.update_available == 1 with: chat_id: ${{ secrets.TG_CHAT_ID }} - token: ${{ secrets.TG_TOKEN }} \ No newline at end of file + token: ${{ secrets.TG_TOKEN }}