Skip to content

Commit 77f1ce9

Browse files
committed
Increase git fetch depth from 1 to 50 in packaging workflow to improve commit verification.
1 parent fa91113 commit 77f1ce9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
- name: Verify commit exists in remote branch
5151
run: |
5252
if [[ "${{ github.ref }}" == refs/tags/* && "${{ github.event_name }}" == "release" && ("${{ github.event.action }}" == "published" || "${{ github.event.action }}" == "prereleased") ]]; then
53-
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
53+
git fetch --no-tags --prune --depth=50 origin +refs/heads/*:refs/remotes/origin/*
5454
git branch --remote --contains | grep -E 'origin/(main|release/)'
5555
else
56-
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
56+
git fetch --no-tags --prune --depth=50 origin +refs/heads/*:refs/remotes/origin/*
5757
git branch --remote --contains | grep origin/${BRANCH_NAME}
5858
fi
5959
- name: Set VERSION variable

0 commit comments

Comments
 (0)