Loading .gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ check-if-branch-is-up-to-date-with-main: script: - echo $CI_COMMIT_SHA - echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME - commits_behind_count=$(git rev-list --count origin/$CI_COMMIT_SHA..origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME) - commits_behind_count=$(git rev-list --count origin/$CI_COMMIT_BRANCH..origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME) - echo $commits_behind_count - if [ $commits_behind_count -eq 0 ]; then exit 0; else exit 1; fi; Loading Loading
.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ check-if-branch-is-up-to-date-with-main: script: - echo $CI_COMMIT_SHA - echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME - commits_behind_count=$(git rev-list --count origin/$CI_COMMIT_SHA..origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME) - commits_behind_count=$(git rev-list --count origin/$CI_COMMIT_BRANCH..origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME) - echo $commits_behind_count - if [ $commits_behind_count -eq 0 ]; then exit 0; else exit 1; fi; Loading