Skip to content

Commit

Permalink
don't bail out of the script entirely in the update php script if in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jun 26, 2024
1 parent 17cb536 commit 2c6d2e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions private/scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ function update_php() {
fi

# If we're in CI, don't run the push actions. Note: if you're running Bats tests locally, you should pass CI=1 before running the tests.
if [ "$is_ci" -eq 1 ]; then
if [ "$is_ci" -eq 0 ]; then
git add pantheon.yml
git commit -m "[Sage Install] Update PHP version to ${phpversion}"
git push origin "$branch"
else
echo "${yellow}CI detected. Skipping Git operations. PHP updated to ${phpversion}.${normal}"
exit 0
fi
git add pantheon.yml
git commit -m "[Sage Install] Update PHP version to ${phpversion}"
git push origin "$branch"
}

# Install sage and related dependencies.
Expand Down

0 comments on commit 2c6d2e6

Please sign in to comment.