forked from wowsims/cata
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.68 KB
/
update_items.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Update Items
on:
workflow_dispatch
jobs:
update-items:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.21.x
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Protoc Go plugin
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '19'
- name: Checkout
uses: actions/[email protected]
- name: Test
run: make test
- name: Delete Old DB
run: rm assets/db_inputs/wowhead_item_tooltips.csv
- name: Update DB
run: go run ./tools/database/gen_db -outDir=assets -gen=wowhead-items
- name: Make Items
run: make items
- name: Set Date
id: date
run: |
echo "builddate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: |
assets/db_inputs/wowhead_item_tooltips.csv
assets/database/db.bin
assets/database/db.json
branch: update_item_db
delete-branch: true
commit-message: 'Update Item DB at ${{ steps.date.outputs.builddate}}'
title: 'Update Item DB at ${{ steps.date.outputs.builddate}}'
body: |
Update Item DB at ${{ steps.date.outputs.builddate}}