File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,14 @@ jobs:
32
32
shell : bash
33
33
# env:
34
34
# GH_TOKEN: ${{ github.token }}
35
+ # 'gh release create' 403s with github.token which explains this nonsense
35
36
run : |
36
37
git fetch --tags
37
38
tag_name="${{ inputs.for_tag }}"
38
- # 'gh release create' 403s with github.token
39
39
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}^{}"
41
45
git push --tags
You can’t perform that action at this time.
0 commit comments