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: | run: |
set -euo pipefail set -euo pipefail
if [[ -z "${INPUT_TAG}" ]]; then if [[ -z "${INPUT_TAG}" ]]; then
set +e
TAG="$(gh release view --repo "${GITHUB_REPOSITORY}" --json tagName -q .tagName)" TAG="$(gh release view --repo "${GITHUB_REPOSITORY}" --json tagName -q .tagName)"
if [[ -z "${TAG}" ]]; then gh_status=$?
echo "No tag provided and failed to determine latest release tag" >&2 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 exit 1
fi fi
else else

View file

@ -77,6 +77,11 @@ if [[ -z "$binary_path" ]]; then
exit 1 exit 1
fi fi
if [[ -z "$version" ]]; then
echo "Missing --version" >&2
exit 1
fi
if [[ "$binary_path" != /* ]]; then if [[ "$binary_path" != /* ]]; then
# interpret relative to the directory where the user invoked the script # interpret relative to the directory where the user invoked the script
binary_path="$PWD/$binary_path" binary_path="$PWD/$binary_path"