Skip to content

Commit 95be4de

Browse files
committed
chore: execute terraform workflow on pushing changes to related files
1 parent ba9d3e0 commit 95be4de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/provision-by-terraform.yml

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
name: Setup a server by Terraform
22

33
on:
4+
push:
5+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignore
6+
branches:
7+
- master
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
9+
paths:
10+
- .github/workflows/provision-by-terraform.yml
11+
- 'infra/terraform/**'
12+
- '!infra/terraform/*.example'
13+
- '!infra/terraform/*.md'
414
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatch
515
workflow_dispatch:
616

0 commit comments

Comments
 (0)