Refresh code #90
This file contains 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: "Refresh code" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 0" # NOTE: Run this weekly. SEE: https://crontab.guru/every-week | |
jobs: | |
refresh_code: | |
name: "Refresh code" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'pnpm' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Generate OpenAPI bindings | |
run: | | |
pnpm run generate | |
- name: Create pull request with changes | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.CUSTOM_GITHUB_PERSONAL_TOKEN }} | |
add-paths: | | |
generated | |
title: "feat: update to track latest spec changes" | |
body: "Automated changes after Neon spec has been updated" | |
commit-message: "feat: update to track latest spec changes" | |
committer: "GP <[email protected]>" | |
assignees: "paambaati" | |
labels: enhancement | |
delete-branch: true |