- 
  Notifications
 
You must be signed in to change notification settings  - Fork 378
 
Fix Github Action / Control Plane Pipeline #626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
8f7c638
 1454772
 d70b546
 0562a28
 d17ca4e
 1039020
 a6fe0a3
 ee5c4f4
 c334031
 5f30098
 328f25f
 dfc82c4
 d63cfb9
 95415c1
 1442b41
 62c6465
 fd00379
 6f4ef1e
 99a6c33
 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
 
 
 
  | 
 @@ -19,6 +19,7 @@ permissions: | |
| issues: write | ||
| 
  | 
||
| env: | ||
| PREFIX: ${{ vars.REVIEW_APP_PREFIX }} | ||
| CPLN_ORG: ${{ vars.CPLN_ORG_STAGING }} | ||
| CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }} | ||
| APP_NAME: ${{ vars.REVIEW_APP_PREFIX }}-pr-${{ github.event.pull_request.number || github.event.issue.number || inputs.pr_number }} | ||
| 
 
 
 
  | 
 @@ -43,7 +44,28 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
| 
  | 
||
| - name: Validate Required Secrets and Variables | ||
| uses: ./.github/actions/validate-required-vars | ||
| shell: bash | ||
| run: | | ||
| missing=() | ||
| 
  | 
||
| # Check required secrets | ||
| if [ -z "$CPLN_TOKEN" ]; then | ||
| missing+=("Secret: CPLN_TOKEN_STAGING") | ||
| fi | ||
| 
  | 
||
| # Check required variables | ||
| if [ -z "$CPLN_ORG" ]; then | ||
| missing+=("Variable: CPLN_ORG_STAGING") | ||
| fi | ||
| 
  | 
||
| if [ -z "$"PREFIX" }} ]; then | ||
| missing+=("Variable: REVIEW_APP_PREFIX") | ||
| fi | ||
| 
  | 
||
| if [ ${#missing[@]} -ne 0 ]; then | ||
| echo "Required secrets/variables are not set: ${missing[*]}" | ||
| exit 1 | ||
| fi | ||
| 
  | 
||
| 
  
 Comment on lines
 
 46
  to 
 69
 
  
 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Validation Script: Critical Syntax Issue in Variable Check. is syntactically incorrect. Please change it to: to correctly validate if  🧰 Tools🪛 YAMLlint (1.35.1)[error] 50-50: trailing spaces (trailing-spaces) [error] 55-55: trailing spaces (trailing-spaces) [error] 64-64: trailing spaces (trailing-spaces) [error] 68-68: trailing spaces (trailing-spaces)  | 
||
| - name: Setup Environment | ||
| uses: ./.github/actions/setup-environment | ||
| 
 
 
 
  | 
 
 ||