From 737343e395a6e623b840abec4c18688af9fd6269 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 21 Dec 2024 10:31:23 +0100 Subject: [PATCH] Add fetch-depth: 0 to checkout action Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/versioning.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index 3a5f76f..c15dfb5 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -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' }}