Skip to content

Commit 52af82c

Browse files
committed
fix(ci): resolve annotated desktop tags
1 parent d51e0ea commit 52af82c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ jobs:
162162
tag="desktop-v${curr}"
163163
# A tag on this commit is a re-run. A tag on a different commit is an
164164
# anomaly that would otherwise silently swallow this release.
165-
existing="$(git ls-remote --tags origin "refs/tags/${tag}" | cut -f1)"
165+
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) }')"
166167
if [ -n "$existing" ]; then
167168
if [ "$existing" = "$GITHUB_SHA" ]; then
168169
echo "::notice::${tag} already points here; nothing to do."

0 commit comments

Comments
 (0)