Skip to content

Commit

Permalink
chore: execute terraform workflow on pushing changes to related files
Browse files Browse the repository at this point in the history
  • Loading branch information
php-coder committed Dec 11, 2024
1 parent ba9d3e0 commit 95be4de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/provision-by-terraform.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: Setup a server by Terraform

on:
push:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignore
branches:
- master
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
paths:
- .github/workflows/provision-by-terraform.yml
- 'infra/terraform/**'
- '!infra/terraform/*.example'
- '!infra/terraform/*.md'
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatch
workflow_dispatch:

Expand Down

0 comments on commit 95be4de

Please sign in to comment.