Skip to content

v1.6.4

v1.6.4 #18

name: Update Postman Collection
on:
release:
types:
- created
jobs:
update_postman:
if: ${{ github.event.release.prerelease == false }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Add new Postman Collection
run: |
echo "Creating new collection..."
# Application collection
curl --location --request POST 'https://api.getpostman.com/collections?workspace=422d6aac-2d35-401b-b25a-ccbca57a13c2' \
--header 'X-Api-Key: {{secrets.POSTMAN_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-binary "@postman/application.json"
echo "\n🟨 Please add newly created collection in your postman collection list (POSTMAN_COLLECTION_UIDS) in SDK.\n"
# Platform collection
curl --location --request POST 'https://api.getpostman.com/collections?workspace=422d6aac-2d35-401b-b25a-ccbca57a13c2' \
--header 'X-Api-Key: {{secrets.POSTMAN_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-binary "@postman/platform.json"
echo "\n🟨 Please add newly created collection in your postman collection list (POSTMAN_COLLECTION_UIDS) in SDK.\n"