Commit dea1cceb authored by Jan Kiene's avatar Jan Kiene
Browse files

even more debug output!!

parent 0d2834e5
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -66,6 +66,13 @@ check-merged-ci-config-is-valid:
    - echo "=== Baseline CI file (target branch) ==="
    - cat $BASE_YML

    # Debug: Check if files actually differ between refs
    - echo "=== Checking ${patch_yml} at both refs ==="
    - |
      curl -sS "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/files/${patch_yml}?ref=${CI_MERGE_REQUEST_TARGET_BRANCH_SHA}" -H "PRIVATE-TOKEN: $CI_LINT_TOKEN" | jq -r .content | base64 -d | sha256sum
    - |
      curl -sS "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/files/${patch_yml}?ref=${CI_COMMIT_SHA}" -H "PRIVATE-TOKEN: $CI_LINT_TOKEN" | jq -r .content | base64 -d | sha256sum

    # Lint baseline with target branch ref
    - |
      jq -n --arg yaml "$(<$BASE_YML)" '{ content: $yaml }' \