diff --git a/.gitea/workflows/update-check.yml b/.gitea/workflows/update-check.yml index e551ec7..c461894 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 available hugo version + - name: Check available HUGO version id: check run: | export NEWEST_HUGO_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases | jq -r '.[0].name' | sed 's/v//g') export CURRENT_HUGO_RELEASE=$(curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} https://git.cantorgymnasium.de/api/v1/packages/gcg | jq -r 'map(select( .name | contains("hugo"))) | .[0].version') echo update_available=$(! [[ $NEWEST_HUGO_RELEASE != $CURRENT_HUGO_RELEASE ]]; echo $?) >> $GITHUB_OUTPUT - - name: update hugo package + - name: Update HUGO package if: steps.check.outputs.update_available == 1 run: | export NEWEST_HUGO_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases | jq -r '.[0].name' | sed 's/v//g')