Skip to content

Commit 6aeb53a

Browse files
Merge pull request #89 from pascalinthecloud/fix/push-back-to-pr-branch
fix: update checkout step in Terraform docs workflow for improved bra…
2 parents 8ca3e36 + cddc248 commit 6aeb53a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/generate_tf_docs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
docs:
1515
name: Generate Terraform Docs
1616
runs-on: ubuntu-latest
17-
1817
steps:
19-
- name: Checkout base repo (safe)
18+
- name: Checkout PR branch safely
2019
uses: actions/checkout@v4
2120
with:
22-
ref: ${{ github.event.pull_request.base.ref }}
21+
repository: ${{ github.event.pull_request.head.repo.full_name }}
22+
ref: ${{ github.event.pull_request.head.ref }}
2323
token: ${{ secrets.WRITE_PAT }}
2424

25-
- name: Generate terraform docs (from base only)
25+
- name: Generate terraform docs and push to PR branch
2626
uses: terraform-docs/[email protected]
2727
with:
2828
working-dir: .

0 commit comments

Comments
 (0)