We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89843a commit 89191d8Copy full SHA for 89191d8
.github/workflows/deploy-lnt.llvm.org.yaml
@@ -2,7 +2,10 @@ name: Deploy lnt.llvm.org
2
3
on:
4
push:
5
- branches: ['main']
+ paths:
6
+ - '.github/workflows/deploy-lnt.llvm.org.yaml'
7
+ - 'deployment/*'
8
+ pull_request:
9
paths:
10
- '.github/workflows/deploy-lnt.llvm.org.yaml'
11
- 'deployment/*'
@@ -29,5 +32,9 @@ jobs:
29
32
- name: Initialize Terraform
30
33
run: terraform -chdir=deployment init
31
34
35
+ - name: Plan Terraform changes
36
+ run: terraform -chdir=deployment plan
37
+
38
- name: Apply Terraform changes
39
+ if: ${{ github.ref == 'refs/heads/main' }} # only apply changes on pushes to main
40
run: terraform -chdir=deployment apply -auto-approve
0 commit comments