From bd434eed48c672601bdf68cdb9149a0c75d5c29c Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Wed, 5 Feb 2025 17:34:26 +0100 Subject: [PATCH] Use ref checkout properly --- .github/workflows/git-auto-commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/git-auto-commit.yml b/.github/workflows/git-auto-commit.yml index 39b3296..35132e9 100644 --- a/.github/workflows/git-auto-commit.yml +++ b/.github/workflows/git-auto-commit.yml @@ -17,12 +17,12 @@ jobs: steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} - name: Use git-auto-commit-action id: "auto-commit-action" uses: ./ - with: - ref: ${{ github.head_ref }} - name: "no changes detected" if: steps.auto-commit-action.outputs.changes_detected == 'false'