Remove --depth=1 from GitHub Actions git fetch commands in packages.yml.
This commit is contained in:
parent
394f22b6e0
commit
34ecf02c32
4
.github/workflows/packages.yml
vendored
4
.github/workflows/packages.yml
vendored
|
|
@ -137,10 +137,10 @@ jobs:
|
|||
- name: Verify commit exists in branch
|
||||
run: |
|
||||
if [[ "${{ github.ref }}" == refs/tags/* && "${{ github.event_name }}" == "release" && ("${{ github.event.action }}" == "published" || "${{ github.event.action }}" == "prereleased") ]]; then
|
||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||
git fetch --no-tags --prune origin +refs/heads/*:refs/remotes/origin/*
|
||||
git branch --remote --contains | grep -E 'origin/(main|release/)'
|
||||
else
|
||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||
git fetch --no-tags --prune origin +refs/heads/*:refs/remotes/origin/*
|
||||
git branch --remote --contains | grep origin/${BRANCH_NAME}
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue