Skip to content

Commit

Permalink
Remove unnecessary newline characters from url input
Browse files Browse the repository at this point in the history
  • Loading branch information
paulochang committed Feb 20, 2024
1 parent 2419521 commit 6ba042f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push-permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ba042f

Please sign in to comment.