From 0f86860a950903047dfa8909a7c864d1e4c17dcc Mon Sep 17 00:00:00 2001 From: Sean Greenawalt Date: Sun, 21 Sep 2025 20:29:24 -0400 Subject: [PATCH] Fix workflow update_available check --- .forgejo/workflows/publish-patch.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/publish-patch.yaml b/.forgejo/workflows/publish-patch.yaml index 285bfe5..58ce3f6 100644 --- a/.forgejo/workflows/publish-patch.yaml +++ b/.forgejo/workflows/publish-patch.yaml @@ -31,16 +31,16 @@ jobs: latest_published_tag=$(curl -s -u :${{ secrets.TOKEN }} https://git.spgrn.com/v2/seang96/stirling-pdf/tags/list 2>/dev/null | jq -r '.tags[]' 2>/dev/null | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+-fat$' 2>/dev/null | sed 's/-fat$//' 2>/dev/null | sort -V | tail -1 || echo "") echo "Latest published tag: $latest_published_tag" if [ "$latest_tag" = "$latest_published_tag" ]; then - echo "update_available=true" >> $GITHUB_OUTPUT + echo "update_available=false" >> $GITHUB_OUTPUT echo "Image already exists." else - echo "update_available=false" >> $GITHUB_OUTPUT + echo "update_available=true" >> $GITHUB_OUTPUT echo "No published tag found." fi build: needs: [check-latest-tag] - if: needs.check-latest-tag.outputs.update_available == 'false' || github.event_name != 'schedule' + if: needs.check-latest-tag.outputs.update_available == 'true' || github.event_name != 'schedule' runs-on: docker container: image: ghcr.io/catthehacker/ubuntu:act-22.04