From 6ba042f84d72c53ddeee48d47c45814bd8969ffa Mon Sep 17 00:00:00 2001 From: Paulo Chang Date: Tue, 20 Feb 2024 16:00:06 +0100 Subject: [PATCH] Remove unnecessary newline characters from url input --- .github/workflows/push-permissions.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-permissions.yaml b/.github/workflows/push-permissions.yaml index 4dc49fe..a608ec1 100644 --- a/.github/workflows/push-permissions.yaml +++ b/.github/workflows/push-permissions.yaml @@ -37,15 +37,15 @@ jobs: do json=$(curl "https://main--envelop--netcentric.hlx.live/query-index.json?limit=$pageSize&offset=$currentOffset") echo "json: $json" - total=$(echo "$json" | jq '.total') + total=$(echo -n "$json" | jq '.total') echo "total: $total" - role=$(echo "$json" | jq '( .data[] | select(.path=="${{ steps.removeMd.outputs.replaced }}") ) .role') + role=$(echo -n "$json" | jq '( .data[] | select(.path=="${{ steps.removeMd.outputs.replaced }}") ) .role') echo "role: '$role" currentOffset=$(($currentOffset + $pageSize)) echo "currentOffset: $currentOffset" done - encodedUri=$(echo "$${{ steps.removeMd.outputs.replaced }}" | jq --slurp --raw-input --raw-output @uri) + encodedUri=$(echo -n "$${{ steps.removeMd.outputs.replaced }}" | jq --slurp --raw-input --raw-output @uri) echo "finished" echo $json