diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 6610c85c..ba86bb6a 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -21,8 +21,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -38,8 +36,10 @@ jobs: - name: .NET format run: dotnet format --no-restore - - name: Push changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "CI/CD: format code" - file_pattern: '*.cs' \ No newline at end of file + - uses: actions/checkout@v4 + - run: | + git config user.name "github-actions[bot]" + git config user.email "170472707+github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "[skip CI] CI/CD: format code" + git push \ No newline at end of file