This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
Update MDN gaps report #501
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update MDN gaps report | |
on: | |
schedule: | |
- cron: '30 3 * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: mdn-gaps | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
path: mdn-gaps-web | |
- name: Checkout yari | |
uses: actions/checkout@v4 | |
with: | |
repository: mdn/yari | |
path: yari | |
- name: Checkout mdn/content | |
uses: actions/checkout@v4 | |
with: | |
repository: mdn/content | |
path: content | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Set up yari | |
run: yarn install && cp .env-dist .env | |
working-directory: yari | |
- name: Update yari inventory | |
working-directory: yari | |
run: yarn build:prepare && yarn -s tool inventory > ../mdn-gaps/inventory.json | |
- name: Install repo dependencies | |
run: | | |
npm install | |
working-directory: mdn-gaps | |
- name: Update gaps report | |
run: node fetch-gaps.js > ../mdn-gaps-web/results.json | |
working-directory: mdn-gaps | |
- name: Publish updated data | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Update from GH action run" | |
file_pattern: 'results.json' | |
repository: mdn-gaps-web/ |