There was an error while loading. Please reload this page.
1 parent d51e0ea commit 52af82cCopy full SHA for 52af82c
1 file changed
.github/workflows/release.yml
@@ -162,7 +162,8 @@ jobs:
162
tag="desktop-v${curr}"
163
# A tag on this commit is a re-run. A tag on a different commit is an
164
# anomaly that would otherwise silently swallow this release.
165
- existing="$(git ls-remote --tags origin "refs/tags/${tag}" | cut -f1)"
+ existing="$(git ls-remote --tags origin "refs/tags/${tag}" "refs/tags/${tag}^{}" |
166
+ awk '$2 ~ /\^\{\}$/ { peeled=$1 } $2 !~ /\^\{\}$/ { direct=$1 } END { print (peeled ? peeled : direct) }')"
167
if [ -n "$existing" ]; then
168
if [ "$existing" = "$GITHUB_SHA" ]; then
169
echo "::notice::${tag} already points here; nothing to do."
0 commit comments