Skip to content

Commit 47bbdfd

Browse files
committed
fix: push formatting changes in detached HEAD using github.head_ref
1 parent c3efd88 commit 47bbdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/terraform-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4141
git add .
4242
git diff --cached --quiet || git commit -m "Auto-fix Terraform formatting"
43-
git push
43+
git push origin HEAD:${{ github.head_ref }}
4444
4545
# Install tfsec
4646
- name: Install tfsec

0 commit comments

Comments
 (0)