Skip to content

Refresh code

Refresh code #93

Workflow file for this run

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