forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.47 KB
/
interfacedata-updater.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
name: Update InterfaceData.json
on:
schedule:
# picking Fridays as webref IDL releases tend to be pushed on Thursdays
- cron: "0 0 * * 6"
workflow_dispatch:
jobs:
update:
if: github.repository == 'mdn/content'
runs-on: ubuntu-latest
steps:
- name: Checkout content
uses: actions/checkout@v4
with:
path: mdn-content
ref: main
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version-file: "mdn-content/.nvmrc"
- name: Checkout webref
uses: actions/checkout@v4
with:
repository: w3c/webref
path: webref
ref: "@webref/idl@latest"
- name: Extract data from webref
working-directory: mdn-content
run: node scripts/update-interface-data.js ../webref/
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
path: mdn-content
token: ${{ secrets.AUTOMERGE_TOKEN }}
title: Update InterfaceData based on WebRef
author: mdn-bot <[email protected]>
committer: mdn-bot <[email protected]>
commit-message: Update InterfaceData based on WebRef
body: Automated changes generated by scripts/update-interface-data via interface-updater github workflow
labels: |
automated pr
delete-branch: true
branch: interfacedata-update