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