Skip to content
Snippets Groups Projects

Fix linting

Merged Erick Hitter requested to merge fix/linting into main
Files
2
+ 3
1
#!/bin/bash
jq --null-input --arg yaml "$1" '.content=$yaml' \
| curl "https://git.ethitter.com/api/v4/ci/lint?include_merged_yaml=true" \
| curl "https://git.ethitter.com/api/v4/projects/${CI_PROJECT_ID}/ci/lint?include_merged_yaml=true" \
--silent \
--header 'Content-Type: application/json' \
--header "PRIVATE-TOKEN: $GITLAB_API_PAT" \
--data @- \
-o result.json
# TODO: save the `result.json` as an artifact.
echo "**********************************************************"
echo "MERGED YAML:"
jq --raw-output '.merged_yaml' < result.json
Loading