소스 검색

Merge branch 'ci/switch_CI_COMMIT_BRANCH_to_mr_one' into 'master'

ci: bugfix: use CI_MERGE_REQUEST_SOURCE_BRANCH in mr pipelines

See merge request espressif/esp-idf!12562
Fu Hanxi 5 년 전
부모
커밋
eb2edf6ff6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .gitlab/ci/pre_check.yml

+ 1 - 1
.gitlab/ci/pre_check.yml

@@ -29,7 +29,7 @@ check_pre_commit_MR:
     - .check_pre_commit_template
     - .rules:dev
   script:
-    - python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py files ${CI_COMMIT_BRANCH} | xargs pre-commit run --files
+    - python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py files ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} | xargs pre-commit run --files
 
 check_version:
   # Don't run this for feature/bugfix branches, so that it is possible to modify