Skip to content

Commit 5a16e6f

Browse files
authored
Fetch the tags for rev-parse
1 parent f8b4fcb commit 5a16e6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cook_release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,20 @@ jobs:
1919
steps:
2020
- name: checkout
2121
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
2223
- name: set github-actions identity
2324
shell: bash
2425
run: |
2526
# this pair is magic: https://github.com/actions/checkout/tree/v4.2.2#push-a-commit-using-the-built-in-token
2627
git config user.name "github-actions[bot]"
27-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
28+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
29+
2830
- name: cook the release entity
2931
shell: bash
3032
env:
3133
GH_TOKEN: ${{ github.token }}
3234
run: |
35+
git fetch --tags
3336
tag_name="${{ inputs.for_tag }}"
3437
# 'gh release create' doesn't accept anything but branch and sha
3538
target_sha=$(git rev-parse ${tag_name})

0 commit comments

Comments
 (0)