Commit c93282ff authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Change commit SHA to commit branch

parent 54eb6746
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;