Skip to content

Commit dec723f

Browse files
mayastor-borspchandra19
mayastor-bors
andcommitted
Merge #1821
1821: fix: fetch depth 0 r=pchandra19 a=pchandra19 Co-authored-by: Prateek Chandra <Prateek.Chandra@datacore.com>
2 parents 96564e5 + bff608c commit dec723f

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)