From 2117fb87ab237c68dc6392fdba7bf15ff15945f8 Mon Sep 17 00:00:00 2001 From: AndyZiYe <108652123+AndyZiYe@users.noreply.github.com> Date: Wed, 22 Mar 2023 22:50:23 +0800 Subject: [PATCH] [Tool] Workflow Update clang-format checkout tools (#20053) Workflow Update clang-format checkout tools --- .github/workflows/ci-pipeline-branch.yml | 8 ++------ .github/workflows/ci-pipeline.yml | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-pipeline-branch.yml b/.github/workflows/ci-pipeline-branch.yml index ecdede1fde3dbb..7480d37fc9ab6d 100644 --- a/.github/workflows/ci-pipeline-branch.yml +++ b/.github/workflows/ci-pipeline-branch.yml @@ -106,12 +106,8 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 with: - fetch-depth: 0 - - - name: Checkout PR - uses: dawidd6/action-checkout-pr@v1 - with: - pr: ${{ github.event.number }} + persist-credentials: false + submodules: recursive - name: Run Clang-Format run: | diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index e9fe79bbcd9379..3d50541cef1548 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -106,12 +106,8 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 with: - fetch-depth: 0 - - - name: Checkout PR - uses: dawidd6/action-checkout-pr@v1 - with: - pr: ${{ github.event.number }} + persist-credentials: false + submodules: recursive - name: Run Clang-Format run: |