v1.6.4 #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |