Skip to content

Update Postman Collection Nightly #15

Update Postman Collection Nightly

Update Postman Collection Nightly #15

Workflow file for this run

name: Update Postman Collection Nightly
on:
# Run every Monday at 1PM UTC (9AM EST)
schedule:
- cron: "0 13 * * 1"
workflow_dispatch: # Allow manual triggering from the Actions tab
# Jobs to be executed
jobs:
generate:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
# Set up Python
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
# Install the requests library to make HTTP requests
- name: Install dependencies
run: pip install requests
# Execute the Python script to generate the collection
- name: Execute Python script
env:
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
run: python generate.py
# Sync the collection with Postman
#- name: Sync Postman Collections
# uses: jneate/postman-collection-action@v1
# with:
# postmanApiKey: ${{ secrets.POSTMAN_API_KEY }}
# postmanWorkspaceId: 818265e0-7c57-411f-8fe7-5504726ec714
# postmanTimeout: 30000
# Commit any changes to the collection
- name: Commit changes.
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update Postman Collection [skip ci]"
# Keep the workflow alive
- uses: gautamkrishnar/keepalive-workflow@v1 # using the workflow with default settings