Skip to content

Update InterfaceData.json #185

Update InterfaceData.json

Update InterfaceData.json #185

name: Update InterfaceData.json
on:
schedule:
# picking Fridays as webref IDL releases tend to be pushed on Thursdays
- cron: "0 0 * * 6"
workflow_dispatch:
# No GITHUB_TOKEN permissions, as we use AUTOMERGE_TOKEN instead.
permissions: {}
jobs:
update:
if: github.repository == 'mdn/content'
runs-on: ubuntu-latest
steps:
- name: Checkout content
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: mdn-content
ref: main
persist-credentials: false
- name: Setup node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: "mdn-content/.nvmrc"
package-manager-cache: false
- name: Checkout webref
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: w3c/webref
path: webref
ref: "@webref/idl@latest"
persist-credentials: false
- 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@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
path: mdn-content
token: ${{ secrets.AUTOMERGE_TOKEN }}
title: Update InterfaceData based on WebRef
author: mdn-bot <108879845+mdn-bot@users.noreply.github.com>
committer: mdn-bot <108879845+mdn-bot@users.noreply.github.com>
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