Skip to content
Snippets Groups Projects
Verified Commit b42347e7 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

PIPELINE: output commit.json

parent 3928195e
No related branches found
No related tags found
No related merge requests found
Pipeline #31550 failed
......@@ -19,6 +19,7 @@ add-commit:
- echo '{"branch"${COLON} "main", "commit_message"${COLON} "new commit via ci pipeline", "actions"${COLON} [ { "action"${COLON} "update", "file_path"${COLON} "test.tsv", "encoding"${COLON} "base64", "content"${COLON} "' > commit.json
- base64 test.tsv >> commit.json
- echo '" } ] }' >> commit.json
- cat commit.json
- curl --fail-with-body --request POST --header "PRIVATE-TOKEN${COLON} $CIPRIVATETOKEN" --header "Content-Type${COLON} application/json" --data "$(cat commit.json)" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/commits"
pages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment