File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 24
24
test :
25
25
name : Test Firestore Integration If Changed
26
26
runs-on : ubuntu-latest
27
+ env :
28
+ run_terraform_steps : ${{ secrets.JSSDK_ACTIONS_SA_KEY != '' }}
27
29
28
30
steps :
29
31
- name : Checkout Repo
@@ -32,20 +34,23 @@ jobs:
32
34
# This makes Actions fetch all Git history so run-changed script can diff properly.
33
35
fetch-depth : 0
34
36
- uses : ' google-github-actions/auth@v0'
37
+ if : ${{ env.run_terraform_steps }}
35
38
with :
36
39
credentials_json : ' ${{ secrets.JSSDK_ACTIONS_SA_KEY }}'
37
-
40
+
38
41
# create composite indexes with Terraform
39
- - name : Setup Terraform
42
+ - name : Setup Terraform
43
+ if : ${{ env.run_terraform_steps }}
40
44
uses : hashicorp/setup-terraform@v2
41
45
- name : Terraform Init
46
+ if : ${{ env.run_terraform_steps }}
42
47
run : |
43
48
cp config/ci.config.json config/project.json
44
49
cd packages/firestore
45
50
terraform init
46
51
continue-on-error : true
47
52
- name : Terraform Apply
48
- if : github.event_name == 'pull_request'
53
+ if : github.event_name == 'pull_request' && env.run_terraform_steps
49
54
run : |
50
55
cd packages/firestore
51
56
You can’t perform that action at this time.
0 commit comments