File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 2424 test :
2525 name : Test Firestore Integration If Changed
2626 runs-on : ubuntu-latest
27+ env :
28+ run_terraform_steps : ${{ secrets.JSSDK_ACTIONS_SA_KEY != '' }}
2729
2830 steps :
2931 - name : Checkout Repo
@@ -32,20 +34,23 @@ jobs:
3234 # This makes Actions fetch all Git history so run-changed script can diff properly.
3335 fetch-depth : 0
3436 - uses : ' google-github-actions/auth@v0'
37+ if : ${{ env.run_terraform_steps }}
3538 with :
3639 credentials_json : ' ${{ secrets.JSSDK_ACTIONS_SA_KEY }}'
37-
40+
3841 # create composite indexes with Terraform
39- - name : Setup Terraform
42+ - name : Setup Terraform
43+ if : ${{ env.run_terraform_steps }}
4044 uses : hashicorp/setup-terraform@v2
4145 - name : Terraform Init
46+ if : ${{ env.run_terraform_steps }}
4247 run : |
4348 cp config/ci.config.json config/project.json
4449 cd packages/firestore
4550 terraform init
4651 continue-on-error : true
4752 - name : Terraform Apply
48- if : github.event_name == 'pull_request'
53+ if : github.event_name == 'pull_request' && env.run_terraform_steps
4954 run : |
5055 cd packages/firestore
5156
You can’t perform that action at this time.
0 commit comments