1 parent 7654e1a commit 4a271c5Copy full SHA for 4a271c5
1 file changed
.github/workflows/release-tags.yml
@@ -6,6 +6,7 @@ on:
6
- main
7
8
permissions:
9
+ actions: write
10
contents: write
11
12
jobs:
@@ -54,11 +55,11 @@ jobs:
54
55
tag="${package}@v${current}"
56
if git ls-remote --tags origin "refs/tags/$tag" | grep -q "$tag"; then
57
echo "Tag $tag already exists"
- continue
58
+ else
59
+ git tag "$tag"
60
+ git push origin "$tag"
61
fi
62
- git tag "$tag"
- git push origin "$tag"
63
gh workflow run release.yml --ref main -f tag="$tag"
64
done
65
env:
0 commit comments