mirror of
https://github.com/gcatanese/adyen-openapi.git
synced 2026-03-10 08:01:24 +00:00
The CURL Way
This commit is contained in:
14
.github/workflows/generatePostman.yml
vendored
14
.github/workflows/generatePostman.yml
vendored
@@ -20,10 +20,12 @@ jobs:
|
||||
FILE=$(cat postman/CheckoutService-v69.postman/postman.json)
|
||||
echo "FILE_CONTENTS=$FILE" >> $GITHUB_ENV
|
||||
- name: Push to POSTMAN
|
||||
uses: fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: 'https://api.getpostman.com/collections'
|
||||
method: 'POST'
|
||||
customHeaders: '{"Content-Type": "application/json", "X-API-Key": ${{ secrets.POSTMAN_API_KEY }} }'
|
||||
data: ${{ env.FILE_CONTENTS }}
|
||||
run: |
|
||||
echo "--> Pushing to Postman"
|
||||
FILE=$(cat postman/CheckoutService-v69.postman/postman.json)
|
||||
|
||||
echo '{"collection": '"$FILE"' }' | curl -X POST \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'X-API-Key: '"${{secrets.POSTMAN_API_KEY}}"'' \
|
||||
-d @- "https://api.getpostman.com/collections"
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
|
||||
Reference in New Issue
Block a user