Skip to content

Commit 6b52125

Browse files
committed
fix: fetch depth 0 (#628)
* fix: fetch depth 0 Signed-off-by: Prateek Chandra <[email protected]> * fix: add the run section Signed-off-by: Prateek Chandra <[email protected]> --------- Signed-off-by: Prateek Chandra <[email protected]>
1 parent 856a15d commit 6b52125

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/image.yml

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
submodules: 'recursive'
22+
fetch-depth: 0
23+
- run: |
24+
# BUG: HEAD tag is fetched as lightweight instead of annotated
25+
# https://github.com/actions/checkout/issues/290
26+
if [ "${{ github.ref_type }}" == "tag" ]; then
27+
git fetch -f origin ${{ github.ref }}:${{ github.ref }}
28+
fi
2229
- uses: DeterminateSystems/nix-installer-action@v14
2330
- uses: DeterminateSystems/magic-nix-cache-action@v8
2431
- name: Login to Docker Hub

0 commit comments

Comments
 (0)