-
Notifications
You must be signed in to change notification settings - Fork 168
38 lines (34 loc) · 1.03 KB
/
update-errorcodes.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
name: Create PR for new error codes
on: [workflow_dispatch]
jobs:
build:
defaults:
run:
working-directory: ./all-clients
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: |
npm run rebuild
npm install
npm run encode
if git diff --exit-code --quiet HEAD errorcodes.json; then
echo "No new error codes were added."
exit 0
fi
cat <<EOF > ../.changeset/errorcodes.md
---
"apollo-client-devtools": patch
---
add error codes for new Apollo Client version
EOF
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: "[chore] add error codes for new Apollo Client version"
commit-message: "[chore] add error codes for new Apollo Client version"
branch: "pr/update-errorcodes"
delete-branch: true