fixed github actions

This commit is contained in:
Mick Grove 2026-03-29 23:28:19 -07:00
commit 59afdc6043
2 changed files with 10 additions and 2 deletions

View file

@ -33,9 +33,12 @@ jobs:
run: |
set -euo pipefail
if [[ -z "${INPUT_TAG}" ]]; then
set +e
TAG="$(gh release view --repo "${GITHUB_REPOSITORY}" --json tagName -q .tagName)"
if [[ -z "${TAG}" ]]; then
echo "No tag provided and failed to determine latest release tag" >&2
gh_status=$?
set -e
if [[ ${gh_status} -ne 0 || -z "${TAG}" ]]; then
echo "No tag provided and failed to determine latest release tag (gh release view exit status: ${gh_status})" >&2
exit 1
fi
else