Skip to content

Commit ad9ced1

Browse files
Secret validation
1 parent 56085f2 commit ad9ced1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020

2121
- name: "Validate Repository Secrets"
2222
run: |
23-
[[ "${{ vars.DEPLOY_ROLE_ARN }}" -eq "" ]] echo "::error title=Repository Configuration Incomplete::This repository is missing a secret for DEPLOY_ROLE_ARN!"
23+
test -z "${{ vars.DEPLOY_ROLE_ARN }}" && echo "::error title=Repository Configuration Incomplete::This repository is missing a secret for DEPLOY_ROLE_ARN!"
24+
test -z "${{ vars.DEPLOY_ROLE_ARN2 }}" && echo "::error title=Repository Configuration Incomplete::This repository is missing a secret for DEPLOY_ROLE_ARN2!"
2425
2526
- name: Configure AWS credentials
2627
uses: aws-actions/configure-aws-credentials@v1.7.0

0 commit comments

Comments
 (0)