Add fetch-depth: 0 to checkout action
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
10
.github/workflows/versioning.yml
vendored
10
.github/workflows/versioning.yml
vendored
@@ -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' }}
|
||||
|
||||
Reference in New Issue
Block a user