From 4501bed12b734b6522e33a228eef5778b8149625 Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Mon, 2 Oct 2023 10:59:13 +0200 Subject: [PATCH 1/2] ci(github-precommit): Add skipping rules with submodules in pre-commit --- .github/workflows/pre_commit_check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pre_commit_check.yml b/.github/workflows/pre_commit_check.yml index 8aed5bc7755d..938bed7badfe 100644 --- a/.github/workflows/pre_commit_check.yml +++ b/.github/workflows/pre_commit_check.yml @@ -10,6 +10,8 @@ permissions: jobs: pre_commit_check: runs-on: ubuntu-latest + env: + SKIP: "cleanup-ignore-lists" steps: - name: Checkout uses: actions/checkout@v2 From d1ea3f9012ef5bcd4a6f932e5e6f17f8c770bb5d Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Mon, 2 Oct 2023 11:05:45 +0200 Subject: [PATCH 2/2] ci(github-precommit): Check repository with submodules --- .github/workflows/pre_commit_check.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre_commit_check.yml b/.github/workflows/pre_commit_check.yml index 938bed7badfe..3639cf35b4ff 100644 --- a/.github/workflows/pre_commit_check.yml +++ b/.github/workflows/pre_commit_check.yml @@ -10,11 +10,15 @@ permissions: jobs: pre_commit_check: runs-on: ubuntu-latest - env: - SKIP: "cleanup-ignore-lists" steps: - name: Checkout uses: actions/checkout@v2 + with: + submodules: 'recursive' # Check out git submodules + - name: Sync and Update Submodules + run: | + git submodule sync --recursive + git submodule update --init --recursive - name: Fetch head and base refs # This is necessary for pre-commit to check the changes in the PR branch run: |