Skip to content

Commit

Permalink
check for updates before apply
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Oct 3, 2023
1 parent b3bc424 commit bd46569
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/behat-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ fi
set -ex

###
# Apply any outstanding upstream updates.
# Check for and apply any outstanding upstream updates.
# This never happens manually, so we might as well do it in automation before we run tests.
###
terminus connection:set $TERMINUS_SITE.dev git
terminus upstream:updates:apply $TERMINUS_SITE.dev --accept-upstream
updates=$(terminus upstream:updates:list "$TERMINUS_SITE.dev")
if echo "$updates" | grep -q "There are no available updates for this site."; then
echo "No upstream updates to apply."
else
terminus upstream:updates:apply "$TERMINUS_SITE.dev" --accept-upstream
fi

###
# Create a new environment for this particular test run.
Expand Down

0 comments on commit bd46569

Please sign in to comment.