Skip to content

Commit bedf5a8

Browse files
Fix tf-plan: checkout PR head branch, not merge ref
Same fix as expand-terraform (PR #89). When expand pushes regenerated files to the PR branch, tf-plan must checkout the updated branch HEAD, not the stale merge ref captured at workflow trigger time.
1 parent 65536c7 commit bedf5a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/tf-plan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- uses: actions/checkout@v6
5353
with:
54-
ref: ${{ github.ref }}
54+
ref: ${{ github.head_ref || github.ref }}
5555

5656
- uses: hashicorp/setup-terraform@v4
5757
with:

0 commit comments

Comments
 (0)