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

PIPELINE: remove newlines from echo

parent 358ec147
No related branches found
No related tags found
No related merge requests found
Pipeline #31556 failed
......@@ -16,9 +16,9 @@ add-commit:
script:
- COLON=':'
- echo "test" >> test.tsv
- 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
- echo -n "{\"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
- echo -n '" } ] }' >> 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"
......
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