From 0c017022c555cc16ef12434b7582f530f0e1b28a 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 498153e5076a4e..adc77450d78c01 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -67,6 +67,11 @@ jobs: git checkout c71d0bf4e21876ebec3e5647491186f8797fde31 # v0.18.2 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