Skip to content

Commit 018ac65

Browse files
committed
ELI-338: Adds json properly using jq
1 parent a9e4ef9 commit 018ac65

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/dev_sandbox_publish_deploy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,12 @@ jobs:
147147
env:
148148
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}
149149
run: |
150+
jq -c '{collection: .}' specification/postman/collection.json > wrapped_collection.json
150151
curl -X PUT \
151152
https://api.getpostman.com/collections/44595835-573a42db-b7a5-4b69-9f62-696b6df3f12f \
152153
-H "X-Api-Key: $POSTMAN_API_KEY" \
153154
-H "Content-Type: application/json" \
154-
-d "{\"collection\": $(cat specification/postman/collection.json)}
155+
-d @wrapped_collection.json
155156
156157
publish:
157158
needs: publish_postman

0 commit comments

Comments
 (0)