Skip to content

Commit a6f4035

Browse files
Fix tf-plan: checkout PR head branch after expand push (#90)
## Summary Same fix as #89 but for `tf-plan.yml`. When `expand-terraform` pushes regenerated files to the PR branch, `tf-plan` must checkout the updated branch HEAD (`github.head_ref`), not the stale merge ref (`github.ref`) captured at workflow trigger time. Without this, tf-plan validates against old generated files that don't reflect app.yaml changes. ## Test plan - [ ] Merge this, then re-run test app PR CI
1 parent 8d948fe commit a6f4035

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)