diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 066617da..cf43844e 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@v4 with: token: ${{ secrets.BYPASS_WORKFLOW_PAT || github.token }} + ref: ${{ github.event.pull_request.head.ref || github.ref_name }} - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -38,3 +39,4 @@ jobs: commit_user_name: sp-tarkov-bot commit_user_email: singleplayertarkov@gmail.com commit_author: sp-tarkov-bot + branch: ${{ github.event.pull_request.head.ref || github.ref_name }}