File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
.github/actions/validate-required-vars Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,37 @@ runs:
1010 missing=()
1111
1212 # Check required secrets
13- if [ -z "$CPLN_TOKEN_STAGING" ]; then
13+ if [ -z "${{ secrets. CPLN_TOKEN_STAGING }} " ]; then
1414 missing+=("Secret: CPLN_TOKEN_STAGING")
1515 fi
16+
17+ if [ -z "${{ secrets.CPLN_TOKEN_PRODUCTION }}" ]; then
18+ missing+=("Secret: CPLN_TOKEN_PRODUCTION")
19+ fi
1620
1721 # Check required variables
18- if [ -z "$CPLN_ORG_STAGING" ]; then
22+ if [ -z "${{ vars. CPLN_ORG_STAGING }} " ]; then
1923 missing+=("Variable: CPLN_ORG_STAGING")
2024 fi
21- if [ -z "$REVIEW_APP_PREFIX" ]; then
25+
26+ if [ -z "${{ vars.CPLN_ORG_PRODUCTION }}" ]; then
27+ missing+=("Variable: CPLN_ORG_PRODUCTION")
28+ fi
29+
30+ if [ -z "${{ vars.REVIEW_APP_PREFIX }}" ]; then
2231 missing+=("Variable: REVIEW_APP_PREFIX")
2332 fi
33+
34+ if [ -z "${{ vars.PRODUCTION_APP_NAME }}" ]; then
35+ missing+=("Variable: PRODUCTION_APP_NAME")
36+ fi
37+
38+ if [ -z "${{ vars.STAGING_APP_NAME }}" ]; then
39+ missing+=("Variable: STAGING_APP_NAME")
40+ fi
2441
2542 if [ ${#missing[@]} -ne 0 ]; then
26- echo "Required secrets/variables are not set: ${missing[*]}"
43+ echo "Missing required secrets/variables:"
44+ printf '%s\n' "${missing[@]}"
2745 exit 1
2846 fi
You can’t perform that action at this time.
0 commit comments