Daily Upstream Check for Postman Docs #207
This file contains hidden or 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
| name: Daily Upstream Check for Postman Docs | |
| on: | |
| schedule: | |
| - cron: "58 4 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| update-json-pr: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write # Needed to create the PR | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: develop | |
| - name: Fetch JSON | |
| run: ./misc/get_postman.sh | |
| - name: Process JSON | |
| run: ./misc/process_postman.sh | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.PAT_TOKEN }} | |
| commit-message: "chore: update postman json" | |
| title: "Update Postman Documentation" | |
| body: "The postman documentation has changed. This PR updates the local copy." | |
| branch: "automated-postman-update" | |
| base: "develop" |