mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
ci: added git fetch for target branch
This commit is contained in:
@ -89,6 +89,7 @@ pylint-check:
|
|||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y bc
|
- apt-get install -y bc
|
||||||
script:
|
script:
|
||||||
|
- git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
|
||||||
# Identify changed Python files
|
# Identify changed Python files
|
||||||
- if [ "$CI_PIPELINE_SOURCE" == "merge_request_event" ]; then
|
- if [ "$CI_PIPELINE_SOURCE" == "merge_request_event" ]; then
|
||||||
TARGET_BRANCH_COMMIT_SHA=$(git rev-parse origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME);
|
TARGET_BRANCH_COMMIT_SHA=$(git rev-parse origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME);
|
||||||
|
Reference in New Issue
Block a user