This repository was archived by the owner on May 25, 2026. It is now read-only.
Run generate.sh script and Manage PR #104
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: Run generate.sh script and Manage PR | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: generate-script | |
| cancel-in-progress: false | |
| jobs: | |
| run-script: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| - name: Install apib2swagger | |
| run: npm install -g apib2swagger | |
| - name: Setup PHP and install Saloon SDK Generator | |
| uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0 | |
| with: | |
| php-version: 8.2 | |
| tools: crescat-io/saloon-sdk-generator | |
| - uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0 | |
| - name: Run generate.sh script | |
| run: | | |
| chmod +x ./generate.sh | |
| ./generate.sh | |
| - name: Create or update PR | |
| id: pr | |
| uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: "auto/generate-script" | |
| commit-message: "Automated update from generate.sh script" | |
| title: "Automated update from generate.sh script" | |
| body: "This pull request was automatically created or updated by GitHub Actions." | |
| delete-branch: true |