File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
actions/validate-required-vars Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 11name : ' Validate Required Variables'
22description : ' Validates that all required secrets and variables for Control Plane operations'
33
4+ inputs :
5+ org :
6+ description : ' Organization name'
7+ required : true
8+ prefix :
9+ description : ' Review App Prefix'
10+ required : true
11+
412runs :
513 using : ' composite'
614 steps :
715 - name : Validate Required Secrets and Variables
816 shell : bash
17+ env :
18+ REVIEW_APP_PREFIX : ${{ inputs.prefix }}
19+ CPLN_ORG_STAGING : ${{ inputs.org }}
20+ CPLN_TOKEN_STAGING : ${{ secrets.CPLN_TOKEN_STAGING }}
921 run : |
1022 missing=()
1123
1830 if [ -z "$CPLN_ORG_STAGING" ]; then
1931 missing+=("Variable: CPLN_ORG_STAGING")
2032 fi
33+
2134 if [ -z "$REVIEW_APP_PREFIX" ]; then
2235 missing+=("Variable: REVIEW_APP_PREFIX")
2336 fi
Original file line number Diff line number Diff line change 7171
7272 - name : Validate Required Secrets and Variables
7373 uses : ./.github/actions/validate-required-vars
74+ with :
75+ prefix : ${{ vars.REVIEW_APP_PREFIX }}
76+ org : ${{ vars.CPLN_ORG_STAGING }}
7477
7578 - name : Get PR HEAD Ref
7679 id : getRef
You can’t perform that action at this time.
0 commit comments