File tree 2 files changed +16
-0
lines changed
actions/validate-required-vars
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Validate Required Variables'
2
2
description : ' Validates that all required secrets and variables for Control Plane operations'
3
3
4
+ inputs :
5
+ org :
6
+ description : ' Organization name'
7
+ required : true
8
+ prefix :
9
+ description : ' Review App Prefix'
10
+ required : true
11
+
4
12
runs :
5
13
using : ' composite'
6
14
steps :
7
15
- name : Validate Required Secrets and Variables
8
16
shell : bash
17
+ env :
18
+ REVIEW_APP_PREFIX : ${{ inputs.prefix }}
19
+ CPLN_ORG_STAGING : ${{ inputs.org }}
20
+ CPLN_TOKEN_STAGING : ${{ secrets.CPLN_TOKEN_STAGING }}
9
21
run : |
10
22
missing=()
11
23
18
30
if [ -z "$CPLN_ORG_STAGING" ]; then
19
31
missing+=("Variable: CPLN_ORG_STAGING")
20
32
fi
33
+
21
34
if [ -z "$REVIEW_APP_PREFIX" ]; then
22
35
missing+=("Variable: REVIEW_APP_PREFIX")
23
36
fi
Original file line number Diff line number Diff line change 71
71
72
72
- name : Validate Required Secrets and Variables
73
73
uses : ./.github/actions/validate-required-vars
74
+ with :
75
+ prefix : ${{ vars.REVIEW_APP_PREFIX }}
76
+ org : ${{ vars.CPLN_ORG_STAGING }}
74
77
75
78
- name : Get PR HEAD Ref
76
79
id : getRef
You can’t perform that action at this time.
0 commit comments