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

PIPELINE: don't wrap lines in base64 encoded content

parent 60b624e8
No related branches found
No related tags found
No related merge requests found
Pipeline #31599 passed
...@@ -47,7 +47,7 @@ add-commit: ...@@ -47,7 +47,7 @@ add-commit:
# create the commit.json which is to send to the commit api of gitlab # create the commit.json which is to send to the commit api of gitlab
- echo -n "{\"branch\"${COLON} \"main\", \"commit_message\"${COLON} \"new commit via ci pipeline\", \"actions\"${COLON} [ { \"action\"${COLON} \"update\", \"file_path\"${COLON} \"versions.json\", \"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} \"versions.json\", \"encoding\"${COLON} \"base64\", \"content\"${COLON} \"" > commit.json
- echo -n "$(base64 versions.json)" >> commit.json - echo -n "$(base64 -w 0 versions.json)" >> commit.json
- echo -n '" } ] }' >> commit.json - echo -n '" } ] }' >> commit.json
- DATA="$(cat commit.json)" - DATA="$(cat commit.json)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment