Commit 3a510a9 1 parent eaefff1 commit 3a510a9 Copy full SHA for 3a510a9
File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,6 @@ set -eo pipefail
11
11
# Authenticate with Terminus
12
12
terminus -n auth:login --machine-token=" $TERMINUS_TOKEN "
13
13
14
- # Ensure secrets are set
15
- terminus -n secrets:set " $TERMINUS_SITE .$TERMINUS_ENV " token " ${GH_TOKEN:- $GITHUB_TOKEN } " --file=' .build-secrets/tokens.json' --clear --skip-if-empty
16
-
17
- # Delete old multidev environments associated
18
- # with a PR that has been merged or closed.
19
- terminus -n build:env:delete:pr " $TERMINUS_SITE " --yes
20
-
21
14
if [[ " $CI_BRANCH " != " $DEFAULT_BRANCH " ]]
22
15
then
23
16
# Create a new multidev environment (or push to an existing one)
@@ -35,3 +28,9 @@ terminus -n drush "$TERMINUS_SITE.$TERMINUS_ENV" -- deploy -v -y
35
28
36
29
# Clear the environment cache
37
30
terminus -n env:clear-cache " $TERMINUS_SITE .$TERMINUS_ENV "
31
+
32
+ # Ensure secrets are set
33
+ terminus -n secrets:set " $TERMINUS_SITE .$TERMINUS_ENV " token " ${GH_TOKEN:- $GITHUB_TOKEN } " --file=' .build-secrets/tokens.json' --clear --skip-if-empty
34
+ # Delete old multidev environments associated
35
+ # with a PR that has been merged or closed.
36
+ terminus -n build:env:delete:pr " $TERMINUS_SITE " --yes
You can’t perform that action at this time.
0 commit comments