Loading .gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -40,16 +40,16 @@ check-merged-ci-config-is-valid: jq --null-input --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ | curl --url "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint?include_merged_yaml=true" \ --header 'Content-Type: application/json' \ --output $BASELINE_YAML \ --data @- --output $BASELINE_YAML - sed -i".bak" "s/\&IVAS_CODEC_CI_REF main/\&IVAS_CODEC_CI_REF ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}/" $REPO/.gitlab-ci.yml - | jq --null-input --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ | curl --url "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint?include_merged_yaml=true" \ --header 'Content-Type: application/json' \ --output $MERGED_YAML \ --data @- --output $MERGED_YAML - | grep "\"valid\": true" $MERGED_YAML artifacts: Loading Loading
.gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -40,16 +40,16 @@ check-merged-ci-config-is-valid: jq --null-input --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ | curl --url "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint?include_merged_yaml=true" \ --header 'Content-Type: application/json' \ --output $BASELINE_YAML \ --data @- --output $BASELINE_YAML - sed -i".bak" "s/\&IVAS_CODEC_CI_REF main/\&IVAS_CODEC_CI_REF ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}/" $REPO/.gitlab-ci.yml - | jq --null-input --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ | curl --url "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint?include_merged_yaml=true" \ --header 'Content-Type: application/json' \ --output $MERGED_YAML \ --data @- --output $MERGED_YAML - | grep "\"valid\": true" $MERGED_YAML artifacts: Loading