File tree 1 file changed +22
-4
lines changed
.github/actions/validate-required-vars 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,37 @@ runs:
10
10
missing=()
11
11
12
12
# Check required secrets
13
- if [ -z "$CPLN_TOKEN_STAGING" ]; then
13
+ if [ -z "${{ secrets. CPLN_TOKEN_STAGING }} " ]; then
14
14
missing+=("Secret: CPLN_TOKEN_STAGING")
15
15
fi
16
+
17
+ if [ -z "${{ secrets.CPLN_TOKEN_PRODUCTION }}" ]; then
18
+ missing+=("Secret: CPLN_TOKEN_PRODUCTION")
19
+ fi
16
20
17
21
# Check required variables
18
- if [ -z "$CPLN_ORG_STAGING" ]; then
22
+ if [ -z "${{ vars. CPLN_ORG_STAGING }} " ]; then
19
23
missing+=("Variable: CPLN_ORG_STAGING")
20
24
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
22
31
missing+=("Variable: REVIEW_APP_PREFIX")
23
32
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
24
41
25
42
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[@]}"
27
45
exit 1
28
46
fi
You can’t perform that action at this time.
0 commit comments