From daf0902e9ff9edf6019e4abc6652432b71ba5e5b Mon Sep 17 00:00:00 2001 From: Refringe Date: Mon, 21 Jul 2025 09:06:39 -0400 Subject: [PATCH] [workflow] specify ref and repo in checkout --- .github/workflows/dotnet-format.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 21c9ceb9..59767407 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -19,7 +19,8 @@ jobs: uses: actions/checkout@v4 with: token: ${{ secrets.BYPASS_WORKFLOW_PAT || github.token }} - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.head.ref || github.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -33,7 +34,7 @@ jobs: run: csharpier format . - name: Auto Commit Changes - uses: stefanzweifel/git-auto-commit-action@v5 + uses: stefanzweifel/git-auto-commit-action@v6 with: commit_message: .NET Format Style Fixes commit_user_name: sp-tarkov-bot