We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f29c1 commit a5c428fCopy full SHA for a5c428f
ps-create-helper-functions.sh
@@ -74,12 +74,15 @@ function create-diff-for-ci {
74
local ORG_NAME=$2
75
local deploy_request_number=$3
76
local BRANCH_NAME=$4
77
+ local refresh_schema = $5
78
79
local deploy_request="https://app.planetscale.com/${ORG_NAME}/${DB_NAME}/deploy-requests/${deploy_request_number}"
80
local BRANCH_DIFF="Diff could not be generated for deploy request $deploy_request"
81
82
# updating schema for branch
- pscale branch refresh-schema "$DB_NAME" "$BRANCH_NAME" --org "$ORG_NAME"
83
+ if [ -n "$refresh_schmema" ]; then
84
+ pscale branch refresh-schema "$DB_NAME" "$BRANCH_NAME" --org "$ORG_NAME"
85
+ fi
86
87
local lines=""
88
# read shell output line by line and assign to variable
0 commit comments