Loading .gitlab-ci.yml +2 −6 Original line number Diff line number Diff line Loading @@ -40,14 +40,10 @@ check-merged-ci-config-is-valid: # for testing - | curl -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/$project_id/repository/files/.gitlab-ci.yml" curl -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/$project_id/repository/files/.gitlab-ci.yml?ref=main" - | curl -X POST \ -H "Content-Type: application/json" \ -H "JOB-TOKEN: $CI_JOB_TOKEN" \ --data '{"content": "stages: [test]\n"}' \ "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" curl -X POST -H "Content-Type: application/json" -H "JOB-TOKEN: $CI_JOB_TOKEN" --data '{"content": "stages: [test]\n"}' "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true&ref=main" # get the CI file from the respective repo without lengthy clone - test_yml="$REPO-ci.yml" Loading Loading
.gitlab-ci.yml +2 −6 Original line number Diff line number Diff line Loading @@ -40,14 +40,10 @@ check-merged-ci-config-is-valid: # for testing - | curl -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/$project_id/repository/files/.gitlab-ci.yml" curl -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/$project_id/repository/files/.gitlab-ci.yml?ref=main" - | curl -X POST \ -H "Content-Type: application/json" \ -H "JOB-TOKEN: $CI_JOB_TOKEN" \ --data '{"content": "stages: [test]\n"}' \ "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" curl -X POST -H "Content-Type: application/json" -H "JOB-TOKEN: $CI_JOB_TOKEN" --data '{"content": "stages: [test]\n"}' "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true&ref=main" # get the CI file from the respective repo without lengthy clone - test_yml="$REPO-ci.yml" Loading