From e0ad880562b2b021453ff59fe9ce257be6b8390d Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Wed, 26 Aug 2026 09:44:36 +0200 Subject: [PATCH] ci: move check_submodule_sync to ci/actions/common --- .gitlab-ci.yml | 3 +-- .gitlab/ci/pre_deploy.yml | 25 ------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 .gitlab/ci/pre_deploy.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0920ba0c4d5..9e3e26e12a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ include: - "templates/idf/v2/pre_check.yml" - "templates/idf/pre-commit.yml" - "templates/idf/build.yml" - - "templates/idf/deploy-github.yml" + - "templates/idf/v2/deploy-github.yml" - "templates/idf/deploy-docs.yml" - "templates/idf/integration-test.yml" - "templates/idf/sync-files.yml" @@ -33,6 +33,5 @@ include: - ".gitlab/ci/build.yml" - ".gitlab/ci/host-test.yml" - ".gitlab/ci/test-win.yml" - - ".gitlab/ci/pre_deploy.yml" - ".gitlab/ci/deploy.yml" - ".gitlab/ci/post_deploy.yml" diff --git a/.gitlab/ci/pre_deploy.yml b/.gitlab/ci/pre_deploy.yml deleted file mode 100644 index a1bdde91f42..00000000000 --- a/.gitlab/ci/pre_deploy.yml +++ /dev/null @@ -1,25 +0,0 @@ -.pre_deploy_template: - stage: pre_deploy - image: $ESP_ENV_IMAGE - dependencies: [] - -check_submodule_sync: - extends: - - .pre_deploy_template - - .rules:test:submodule - tags: [ brew, github_sync ] - retry: 2 - variables: - GIT_STRATEGY: fetch # use brew local mirror first - SUBMODULES_TO_FETCH: "none" - PUBLIC_IDF_URL: "https://github.com/espressif/esp-idf.git" - script: - - git submodule deinit --force . - - rm -rf .git/modules # remove all the cached metadata - # setting the default remote URL to the public one, to resolve relative location URLs - - git config remote.origin.url ${PUBLIC_IDF_URL} - # check if all submodules are correctly synced to public repository - - git submodule init - - git config --get-regexp '^submodule\..*\.url$' || true - - git submodule update --recursive - - echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"