Skip to content

Commit

Permalink
chore: cicd error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-perkins committed Nov 5, 2024
1 parent b2259b8 commit 6ad6268
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,20 @@ echo "Configuring git.."
git config user.name metamaskbot
git config user.email [email protected]

echo "Fetching from remote..."
git fetch

echo "Checking out ${RELEASE_BRANCH_NAME}"
git checkout "${RELEASE_BRANCH_NAME}"

# Check for branch existence
if git branch -a | grep -q "remotes/origin/${RELEASE_BRANCH_NAME}"; then
echo "Branch exists, checking out."
git checkout -b "${RELEASE_BRANCH_NAME}" origin/"${RELEASE_BRANCH_NAME}"
else
echo "Branch does not exist."
exit 1
fi

echo "Release Branch Checked Out"

echo "Running version update scripts.."
Expand Down

0 comments on commit 6ad6268

Please sign in to comment.