Fix outputs
Some checks failed
Build and Patch Releases / check-latest-tag (push) Successful in 2s
Build and Patch Releases / build (push) Has been cancelled

This commit is contained in:
Sean Greenawalt 2025-09-19 19:05:58 -04:00
commit b226da0f9d

View file

@ -21,7 +21,7 @@ jobs:
id: get_tag id: get_tag
run: | run: |
latest_tag=$(curl -s https://api.github.com/repos/Stirling-Tools/Stirling-PDF/tags | jq -r '.[0].name') latest_tag=$(curl -s https://api.github.com/repos/Stirling-Tools/Stirling-PDF/tags | jq -r '.[0].name')
echo "latest_tag=$latest_tag" >> $GITHUB_ENV echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
echo "Latest tag: $latest_tag" echo "Latest tag: $latest_tag"
- name: Compare with Latest Published Tag - name: Compare with Latest Published Tag
@ -30,10 +30,10 @@ 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 "") 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
echo "update_available=true" >> $GITHUB_ENV echo "update_available=true" >> $GITHUB_OUTPUT
echo "Image already exists." echo "Image already exists."
else else
echo "update_available=false" >> $GITHUB_ENV echo "update_available=false" >> $GITHUB_OUTPUT
echo "No published tag found." echo "No published tag found."
fi fi