-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 910 Bytes
/
generate.yaml
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
name: generate
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Checkout
uses: actions/checkout@v4
- name: Generate
run: make
- name: Count changes
id: changes
run: |
git add -N .
git diff --name-only --exit-code
continue-on-error: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update Error Code
delete-branch: true
title: Update Error Code
body: |
Error codes have been updated.
- https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt
if: steps.changes.outcome == 'failure'