From ce67691e4e0a07c2b74840149e490fbe83aeef1c Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 7 Jul 2024 11:17:07 +0200 Subject: [PATCH] .gitea/workflows/update-check.yml aktualisiert --- .gitea/workflows/update-check.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/update-check.yml b/.gitea/workflows/update-check.yml index 20fb7ef..3202603 100644 --- a/.gitea/workflows/update-check.yml +++ b/.gitea/workflows/update-check.yml @@ -10,14 +10,14 @@ jobs: update-check: runs-on: act-runner-user steps: - - name: check pagefind version + - name: Check Pagefind version id: check run: | export NEWEST_PAGEFIND_RELEASE=$(curl -s https://api.github.com/repos/CloudCannon/pagefind/releases | jq -r '.[0].name') 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 pagefind 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') @@ -25,13 +25,13 @@ jobs: tar -xf pagefind_extended-$(echo $NEWEST_PAGEFIND_RELEASE)-x86_64-unknown-linux-musl.tar.gz curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --upload-file pagefind_extended https://git.cantorgymnasium.de/api/packages/gcg/generic/pagefind/$NEWEST_PAGEFIND_RELEASE/pagefind_extended - - name: deploy + - name: Deploy 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') curl -sL https://git.cantorgymnasium.de/api/packages/gcg/generic/pagefind/$NEWEST_PAGEFIND_RELEASE/pagefind_extended --output /usr/local/bin/pagefind_extended - - name: notification + - name: Notification uses: actions/telegram-action@main if: steps.check.outputs.update_available == 1 with: