-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.08 KB
/
data.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
name: data
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'
jobs:
data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.COMPAT_BOT_TOKEN }}
submodules: true
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- name: yarn install
run: yarn install --immutable
- name: mdn/browser-compat-data
run: yarn up '@mdn/browser-compat-data@>=5.1.0 <6.0.0'
- name: content update/run.js
run: |
pushd packages/content
rm -fr @content
node update/run.js
popd
- name: codegen
run: yarn codegen
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore(data): update data'
commit_user_name: compatbot
commit_user_email: [email protected]
commit_author: compatbot <[email protected]>
branch: main