From f06ce9f0c6211b2ffc41dc452c80ca7298e5d1b1 Mon Sep 17 00:00:00 2001 From: Jonas Lauermann Date: Mon, 17 Apr 2023 16:40:05 +0200 Subject: [PATCH] [CI] Fix multiline command indentation --- .gitlab-ci.yml | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59928cf3..9a5f6db3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -561,22 +561,22 @@ publish:github-release: # generate installation access token for the mutable GitHub repository - > response=$(curl -L -f - -H "Accept: application/vnd.github+json" - -H "Authorization: Bearer $jwt" - -H "X-GitHub-Api-Version: 2022-11-28" - https://api.github.com/app/installations/36391181/access_tokens - -d '{"repository":"mutable","permissions":{"contents":"write"}}') + -H "Accept: application/vnd.github+json" + -H "Authorization: Bearer $jwt" + -H "X-GitHub-Api-Version: 2022-11-28" + "https://api.github.com/app/installations/36391181/access_tokens" + -d '{"repository":"mutable","permissions":{"contents":"write"}}') - | inst_acc_token=$(echo "$response" | grep -oP '(?<=token": ").*?(?=")') # create GitHub release - > response=$(curl -L -f - -X POST - -H "Accept: application/vnd.github+json" - -H "Authorization: Bearer $inst_acc_token - -H "X-GitHub-Api-Version: 2022-11-28" - https://api.github.com/repos/mutable-org/mutable/releases - -d '{"tag_name":"${TAG}","target_commitish":"main"}') + -X POST + -H "Accept: application/vnd.github+json" + -H "Authorization: Bearer $inst_acc_token + -H "X-GitHub-Api-Version: 2022-11-28" + "https://api.github.com/repos/mutable-org/mutable/releases" + -d '{"tag_name":"${TAG}","target_commitish":"main"}') - | upload_url=$(echo "$response" | grep -oP '(?<=upload_url": ").*?(?={)') @@ -584,20 +584,20 @@ publish:github-release: # add assets to release - > curl -L -f - -X POST - -H "Accept: application/vnd.github+json" - -H "Authorization: Bearer $inst_acc_token - -H "X-GitHub-Api-Version: 2022-11-28" - -H "Content-Type: application/octet-stream" - ${upload_url}?name=mutable-linux-amd64-${TAG}.zip - --data-binary "@mutable-linux-amd64.zip" + -X POST + -H "Accept: application/vnd.github+json" + -H "Authorization: Bearer $inst_acc_token + -H "X-GitHub-Api-Version: 2022-11-28" + -H "Content-Type: application/octet-stream" + "${upload_url}?name=mutable-linux-amd64-${TAG}.zip" + --data-binary "@mutable-linux-amd64.zip" - > curl -L -f - -X POST - -H "Accept: application/vnd.github+json" - -H "Authorization: Bearer $inst_acc_token - -H "X-GitHub-Api-Version: 2022-11-28" - -H "Content-Type: application/octet-stream" - ${upload_url}?name=mutable-macos-amd64-${TAG}.zip - --data-binary "@mutable-macos-amd64.zip" \ No newline at end of file + -X POST + -H "Accept: application/vnd.github+json" + -H "Authorization: Bearer $inst_acc_token + -H "X-GitHub-Api-Version: 2022-11-28" + -H "Content-Type: application/octet-stream" + "${upload_url}?name=mutable-macos-amd64-${TAG}.zip" + --data-binary "@mutable-macos-amd64.zip" \ No newline at end of file