Skip to content

Commit 59756af

Browse files
committed
continue after gh watch failure
1 parent 3719c2d commit 59756af

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

bin/release.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,16 @@ if [ -z "$RUN_ID" ]; then
6767
echo "Error: Could not find release workflow run for $TAG"
6868
exit 1
6969
fi
70-
gh run watch "$RUN_ID" --exit-status
71-
echo "==> Release workflow completed."
70+
if gh run watch "$RUN_ID" --exit-status; then
71+
echo "==> Release workflow completed."
72+
else
73+
echo "==> Release workflow had failures (this is expected if crates.io was already published)."
74+
echo " Verify the GitHub release assets exist before continuing."
75+
read -r -p " Continue? [y/N] " response
76+
if [[ ! "$response" =~ ^[Yy]$ ]]; then
77+
exit 1
78+
fi
79+
fi
7280

7381
# Download CLI tarballs and compute SHA256s
7482
echo "==> Computing SHA256 checksums..."

0 commit comments

Comments
 (0)