Add fetch-depth: 0 to checkout action

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Edward Firmo
2024-12-21 10:31:23 +01:00
committed by GitHub
parent 5569260f92
commit 737343e395

View File

@@ -34,8 +34,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push origin main
git push origin --tags --force
if ! git push origin main; then
echo "Failed to push to main branch"
exit 1
fi
if ! git push origin --tags --force; then
echo "Failed to push tags"
exit 1
fi
- name: Conditionally Update Stable Tag
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.update_stable == 'true' }}