-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c4746f
commit 99ecc16
Showing
9 changed files
with
212,901 additions
and
212,012 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
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: Update Postman Collection | ||
run: | | ||
# Application collection | ||
curl --location --request PUT 'https://api.getpostman.com/collections/25401129-fc65e3d4-aa10-4ba8-ae19-15ae6e57b253' \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'X-Api-Key: {{secrets.POSTMAN_API_KEY}}' \ | ||
--data-binary "@postman/application.json" | ||
echo "\n✅ Application collection updated!!" | ||
# Platform collection | ||
curl --location --request PUT 'https://api.getpostman.com/collections/25401129-f155d8e8-f15d-42c2-9bbd-38d3a556b40c' \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'X-Api-Key: {{secrets.POSTMAN_API_KEY}}' \ | ||
--data-binary "@postman/platform.json" | ||
echo "\n✅ Platform collection updated!!" | ||
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
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
Oops, something went wrong.