Skip to content

Automated build docs: 2026-04-02 17:48:24 #48

Automated build docs: 2026-04-02 17:48:24

Automated build docs: 2026-04-02 17:48:24 #48

name: Sync Postman Collection
on:
push:
branches:
- master
paths:
- update_postman_collection.py
- defs/asana_postman_collection.json
permissions:
id-token: write
jobs:
deploy-to-postman:
runs-on: ubuntu-latest
env:
POSTMAN_COLLECTION_ID: "37831743-a37a0580-d957-4a08-8fe0-c5c905679037"
POSTMAN_COLLECTION_FILE: "defs/asana_postman_collection.json"
steps:
- name: Checkout repository πŸ“š
uses: actions/checkout@v5
- name: Authenticate to AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_sync_postman_collection
- name: Load secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: POSTMAN_API,postman_api_key
# postman_api_key secret is stored as {key:"***..."}
# GitHub Actions environment variable name is POSTMAN_API so to access "key" from the json we can use POSTMAN_API_KEY
parse-json-secrets: true
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python dependencies πŸ“¦
run: |
python -m pip install --upgrade pip
pip install requests
- name: Publish Postman Collection πŸš€
run: |
python update_postman_collection.py
echo ""
echo "βœ… Postman Collection has been updated successfully!"