mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
ci: use different base commit for merge result pipelines
This commit is contained in:
@ -177,12 +177,24 @@ baseline_manifest_sha:
|
|||||||
tags: [fast_run, shiny]
|
tags: [fast_run, shiny]
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then
|
# merged results pipelines, by default
|
||||||
|
# diff between target-branch-head and merged-result-head
|
||||||
|
if [ -n "$CI_MERGE_REQUEST_TARGET_BRANCH_SHA" ]; then
|
||||||
|
git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_SHA --depth=1
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
idf-build-apps dump-manifest-sha \
|
||||||
|
--manifest-files $(find . -name ".build-test-rules.yml" | xargs) \
|
||||||
|
--output .manifest_sha
|
||||||
|
# merge request pipelines, when the mr got conflicts
|
||||||
|
# diff between diff-base-sha and merge-request-head
|
||||||
|
elif [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then
|
||||||
git fetch origin $CI_MERGE_REQUEST_DIFF_BASE_SHA --depth=1
|
git fetch origin $CI_MERGE_REQUEST_DIFF_BASE_SHA --depth=1
|
||||||
git checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
idf-build-apps dump-manifest-sha \
|
idf-build-apps dump-manifest-sha \
|
||||||
--manifest-files $(find . -name ".build-test-rules.yml" | xargs) \
|
--manifest-files $(find . -name ".build-test-rules.yml" | xargs) \
|
||||||
--output .manifest_sha
|
--output .manifest_sha
|
||||||
|
# other pipelines, like the protected branches pipelines
|
||||||
|
# not triggered in this job
|
||||||
fi
|
fi
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
Reference in New Issue
Block a user