Skip to content

Commit eb638f1

Browse files
dhaiducekopenshift-merge-robot
authored andcommitted
Fetch annotated tag
`actions/checkout` creates a lightweight tag, so we need to force a fetch to retrieve the annotated one. ref: https://issues.redhat.com/browse/ACM-5803 Signed-off-by: Dale Haiducek <[email protected]>
1 parent ee68f17 commit eb638f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
1717

18+
# Ref: https://github.com/actions/checkout/issues/290
19+
- name: Fetch annotated tag
20+
run: |
21+
git fetch origin ${{ github.ref }}:${{ github.ref }} --tags --force
22+
1823
- name: Set up Go
1924
uses: actions/setup-go@v3
2025
with:

0 commit comments

Comments
 (0)