-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (34 loc) · 1.14 KB
/
pgroll-spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Update pgroll spec
on:
workflow_dispatch:
schedule:
- cron: '0 */3 * * 1-5' # once every 3 hours on week days
jobs:
update-pgroll-spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check for pgroll spec updates
run: cd packages/pgroll && pnpm generate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GIT_TOKEN }}
commit-message: 'Update pgroll spec'
committer: 'Xata Bot 🦋 <[email protected]>'
title: 'Update pgroll spec'
body: |
This is an autogenerated PR to update the pgroll spec.
branch: update-pgroll-${{ github.run_id }}