Commit 67bb81c3 authored by Jan Kiene's avatar Jan Kiene
Browse files

pass branch names for ref

parent 33113c92
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ check-merged-ci-config-is-valid:
    - |
      jq -n --arg yaml "$(<$BASE_YML)" '{ content: $yaml }' \
      | curl -sS -X POST \
             --url "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/ci/lint?include_merged_yaml=true&dry_run=true&ref=${CI_MERGE_REQUEST_TARGET_BRANCH_SHA}" \
             --url "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/ci/lint?include_merged_yaml=true&dry_run=true&ref=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}" \
             -H "Content-Type: application/json" \
             -H "PRIVATE-TOKEN: $CI_LINT_TOKEN" \
             --output $BASELINE_RESPONSE \
@@ -98,7 +98,7 @@ check-merged-ci-config-is-valid:
    - |
      jq -n --arg yaml "$(<$TEST_YML)" '{ content: $yaml }' \
      | curl -sS -X POST \
             --url "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/ci/lint?include_merged_yaml=true&dry_run=true&ref=${CI_COMMIT_SHA}" \
             --url "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/ci/lint?include_merged_yaml=true&dry_run=true&ref=${CI_COMMIT_REF_NAME}" \
             -H "Content-Type: application/json" \
             -H "PRIVATE-TOKEN: $CI_LINT_TOKEN" \
             --output $MERGED_RESPONSE \