Actions: Add unshallow to fetch
All checks were successful
Build and Save Artifact / build (push) Successful in 12s

This commit is contained in:
Cyanoure
2024-09-15 16:51:42 +02:00
parent d596c6caba
commit d11bca611e

View File

@ -29,8 +29,9 @@ jobs:
run: |
git config --global user.name 'Git Bot'
git config --global user.email 'noreply@kozelkaricsi.hu'
git fetch --all --unshallow
BRANCH_NAME="${GITHUB_REF_NAME}-build"
git fetch origin $BRANCH_NAME || true # Allow failure if branch doesn't exist
git fetch origin $BRANCH_NAME --unshallow || true # Allow failure if branch doesn't exist
git switch $BRANCH_NAME || git switch -c $BRANCH_NAME
git merge ${GITHUB_REF_NAME}
rm -rf dist