We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8585f0 commit 35acfa9Copy full SHA for 35acfa9
1 file changed
entrypoint.sh
@@ -16,9 +16,14 @@ INPUT_TITLE="$(echo "$INPUT_TITLE" | tr -d ' ')"
16
{ gh release view "$INPUT_TAG" >/dev/null 2>&1; rc=$?; } || :
17
18
if (( rc == 0 )); then
19
- echo "Release tag $INPUT_TAG does already exists, it will be replaced..."
+ echo "Release $INPUT_TAG does already exists, it will be deleted first..."
20
gh release delete "$INPUT_TAG" --cleanup-tag --yes
21
- sleep 3
+
22
+ # Workaround for https://github.com/cli/cli/issues/8458
23
+ while git fetch --tags --prune-tags; git tag -l | grep "$INPUT_TAG"; do
24
+ echo "Waiting for release $INPUT_TAG to be deleted.."
25
+ sleep 3
26
+ done
27
fi
28
29
if [ -z "$INPUT_COMMIT" ]; then
0 commit comments