Skip to content

Commit 2970504

Browse files
committed
fix(fetch-terraform-output): default environment_name to ref_name on push events
github.base_ref is empty on push events, causing the job to run without a GitHub environment. Use the same fallback pattern as terraform_workspace: base_ref || ref_name.
1 parent 7009fa3 commit 2970504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/fetch-terraform-output.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
environment_name:
2424
required: false
2525
type: string
26-
default: ${{ github.base_ref }}
26+
default: ${{ github.base_ref || github.ref_name }}
2727
terraform_workspace:
2828
required: false
2929
type: string

0 commit comments

Comments
 (0)