Skip to content

Commit

Permalink
SNOW-1883852: Fixed issue on Bump Version job
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-cazofeifamadrigal committed Jan 27, 2025
1 parent 4bbae86 commit 9880a6f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/snowpark-checkpoints-bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ jobs:
set -o pipefail
TEMP_BRANCH="bump-version-${{ steps.get_version.outputs.version }}"
TEMP_TAG="v${{ steps.get_version.outputs.version }}"
echo "Checking if branch $TEMP_BRANCH exists..."
if git ls-remote --heads origin "$TEMP_BRANCH" | grep -q "$TEMP_BRANCH"; then
Expand All @@ -92,17 +91,6 @@ jobs:
git branch -D "$TEMP_BRANCH" || echo "Branch $TEMP_BRANCH not found locally. Skipping deletion."
fi
echo "Checking if tag $TEMP_TAG exists..."
if git ls-remote --tags origin "$TEMP_TAG" | grep -q "$TEMP_TAG"; then
echo "Tag $TEMP_TAG exists remotely. Deleting..."
git push origin --delete "$TEMP_TAG"
fi
if git tag --list | grep -q "$TEMP_TAG"; then
echo "Tag $TEMP_TAG exists locally. Deleting..."
git tag -d "$TEMP_TAG"
fi
echo "Creating new branch: $TEMP_BRANCH"
git checkout -b "$TEMP_BRANCH"
git status
Expand Down

0 comments on commit 9880a6f

Please sign in to comment.