Skip to content

Commit

Permalink
use httpie
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaafar authored Oct 24, 2024
1 parent 34f95a5 commit 11ddce4
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/postman-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,30 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.x'

- name: Install HTTPie
run: |
sudo apt update
sudo apt install httpie
- name: Upload Flows Collection
run: |
curl -L -f -X PUT 'https://api.getpostman.com/collections/24926895-7bf51205-92ed-49d1-af4a-0130cf84b6f6' \
--header 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
-F 'collection=@postman/v1/whatsapp-flows-api.postman_collection.json;type=application/json'
- name: Upload Cloud API Collection
run: |
curl -L -f -X PUT 'https://api.getpostman.com/collections/13382743-84d01ff8-4253-4720-b454-af661f36acc2' \
--header 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
-F 'collection=@postman/v1/whatsapp-cloud-api.postman_collection.json;type=application/json'
run: |
http --follow PUT 'https://api.getpostman.com/collections/13382743-84d01ff8-4253-4720-b454-af661f36acc2' \
'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
< postman/v1/whatsapp-cloud-api.postman_collection.json
# - name: Upload Cloud API Collection
# run: |
# curl -L -f -X PUT 'https://api.getpostman.com/collections/13382743-84d01ff8-4253-4720-b454-af661f36acc2' \
# --header 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
# -F 'collection=@postman/v1/whatsapp-cloud-api.postman_collection.json;type=application/json'

0 comments on commit 11ddce4

Please sign in to comment.