diff --git a/.forgejo/workflows/publish-patch.yaml b/.forgejo/workflows/publish-patch.yaml index 7fb9b0b..285bfe5 100644 --- a/.forgejo/workflows/publish-patch.yaml +++ b/.forgejo/workflows/publish-patch.yaml @@ -27,6 +27,7 @@ jobs: - name: Compare with Latest Published Tag id: check run: | + latest_tag="${{ steps.get_tag.outputs.latest_tag }}" 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