Skip to content

Commit 01e8f2c

Browse files
committed
remove extra line from jq output
1 parent 9edf80f commit 01e8f2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/releasepublished.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178
curl --fail -H "Accept:application/json" -H "Authorization: Bearer ${{ secrets.PORTAL_ACCESS_TOKEN }}" 'https://ossrh-staging-api.central.sonatype.com/manual/search/repositories?state=open' -o results.json
179179
SELECTOR="sdk-${{github.run_id}}-${{github.run_attempt}}"
180180
cat results.json
181-
repository_namespace=`cat results.json | jq --raw-output --arg SELECTOR $SELECTOR ".[][] | select(.description == \"$SELECTOR\").key" | jq -sRr "@uri"`
181+
repository_namespace=`cat results.json | jq --raw-output --arg SELECTOR $SELECTOR ".[][] | select(.description == \"$SELECTOR\").key" | jq -sRrj "@uri"`
182182
echo $repository_namespace
183183
rm results.json
184184
ls -lahn $WD
@@ -193,5 +193,5 @@ jobs:
193193
cp $WD/finish.xml finish.xml
194194
curl -X POST -H "Accept:application/json" -H "Authorization: Bearer ${{ secrets.PORTAL_ACCESS_TOKEN }}" https://ossrh-staging-api.central.sonatype.com/manual/upload/repository/${repository_namespace}?publishing_type=user_managed -o status.json
195195
cat status.json
196-
portal_id=`cat status.json | jq --raw-output --arg SELECTOR $SELECTOR ".[][] | select(.description == \"$SELECTOR\").portal_deployment_id")`
197-
echo https://central.sonatype.com/api/v1/publisher/deployment/${portal_id}/download/
196+
portal_id=`cat status.json | jq --raw-output --arg SELECTOR $SELECTOR ".[][] | select(.description == \"$SELECTOR\").portal_deployment_id"`
197+
echo https://central.sonatype.com/api/v1/publisher/deployment/${portal_id}/download/

0 commit comments

Comments
 (0)