diff --git a/.github/workflows/auto-clang-format.yml b/.github/workflows/auto-clang-format.yml index a6422c14..0ffea8d2 100644 --- a/.github/workflows/auto-clang-format.yml +++ b/.github/workflows/auto-clang-format.yml @@ -8,7 +8,8 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.head_ref }} + ref: ${{ github.head_ref || github.ref_name }} + fetch-depth: 0 - uses: DoozyX/clang-format-lint-action@v0.20 with: source: '.'