Skip to content

Commit 9476646

Browse files
authored
Git, for real
1 parent 4189a24 commit 9476646

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/cook_release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ jobs:
3232
shell: bash
3333
# env:
3434
# GH_TOKEN: ${{ github.token }}
35+
# 'gh release create' 403s with github.token which explains this nonsense
3536
run: |
3637
git fetch --tags
3738
tag_name="${{ inputs.for_tag }}"
38-
# 'gh release create' 403s with github.token
3939
target_sha=$(git rev-parse ${tag_name})
40-
git tag "-mRelease ${{ inputs.rel_tag }}" "${{ inputs.rel_tag }}" "$target_sha"
40+
# :rolling_eyes:
41+
# hint: You have created a nested tag. The object referred to by your new tag is
42+
# hint: already a tag. If you meant to tag the object that it points to, use:
43+
# hint: git tag -f v3.1.0 7f6f2dc2aec61bcf9a31492d80d932253f62af81^{}
44+
git tag -f "-mRelease ${{ inputs.rel_tag }}" "${{ inputs.rel_tag }}" "${target_sha}^{}"
4145
git push --tags

0 commit comments

Comments
 (0)