-
Notifications
You must be signed in to change notification settings - Fork 36
42 lines (34 loc) · 1.36 KB
/
postman-sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Sync Postman Collection
on:
push:
branches:
- capi-postman
jobs:
sync:
runs-on: ubuntu-latest
steps:
- 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 -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: |
# http --follow --form --ignore-stdin PUT 'https://api.getpostman.com/collections/13382743-84d01ff8-4253-4720-b454-af661f36acc2' \
# 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
# collection@postman/v1/whatsapp-cloud-api.postman_collection.json
- name: Upload Cloud API Collection
run: |
curl -L -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'