Fix $latest_tag not set in check-latest-tag.check
Some checks failed
Build and Patch Releases / check-latest-tag (push) Successful in 28s
Build and Patch Releases / build (push) Has been cancelled

This commit is contained in:
Sean Greenawalt 2025-09-21 20:27:07 -04:00
commit c41747ba36

View file

@ -27,6 +27,7 @@ jobs:
- name: Compare with Latest Published Tag - name: Compare with Latest Published Tag
id: check id: check
run: | 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 "") 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" echo "Latest published tag: $latest_published_tag"
if [ "$latest_tag" = "$latest_published_tag" ]; then if [ "$latest_tag" = "$latest_published_tag" ]; then