From ae78c52fc996e82d73b76d5fc99939c9d56f1edc Mon Sep 17 00:00:00 2001 From: Mingyu Chen Date: Wed, 4 Sep 2024 23:55:02 +0800 Subject: [PATCH] [fix](ga) try fix clang format action (#40393) Because distutils was removed in Python 3.12, we get ModuleNotFoundError: module named 'distutils' Use 3.10 --- .github/workflows/clang-format.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index ef39fa6c45fe11..f49f1987b9ed41 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -67,6 +67,11 @@ jobs: git checkout 6adbe14579e5b8e19eb3e31e5ff2479f3bd302c7 popd &>/dev/null + - name: Install Python dependencies + uses: actions/setup-python@v5 + with: + python-version: '3.10' # Adjust if needed + - name: "Format it!" if: ${{ steps.filter.outputs.changes == 'true' }} uses: ./.github/actions/clang-format-lint-action