Skip to content

Commit

Permalink
Improved GH workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <[email protected]>
  • Loading branch information
PhilipSchmid committed Jun 11, 2024
1 parent 4e0fba6 commit fc96480
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Terraform docs and formatting
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
pull_request: {}
push:
branches:
- main
Expand All @@ -15,7 +11,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
ref: ${{ github.event.pull_request.head.sha }}
- name: terraform fmt
uses: dflook/[email protected]
docs:
Expand All @@ -24,7 +20,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.ref }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Render terraform docs and push changes back to PR branch
uses: terraform-docs/gh-actions@72ed18e5751c95dc36107dff832598081ff56eb9
with:
Expand Down

0 comments on commit fc96480

Please sign in to comment.