Skip to content

Hardcode w3c -- ed uris are not likely to change #22

Hardcode w3c -- ed uris are not likely to change

Hardcode w3c -- ed uris are not likely to change #22

Workflow file for this run

name: roleInfo update
on:
push:
branches:
- main
jobs:
roleInfo:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Needed to compare with origin/main
token: ${{ secrets.W3CGRUNTBOT_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: "latest"
- run: npm i linkedom [email protected]
- run: node ./common/script/buildRoleInfo.js > ./common/script/roleInfo.js
- run: npx prettier --write --print-width 200 ./common/script/roleInfo.js
- run: git config user.name "github-actions[bot]"
- run: git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- run: git add ./common/script/roleInfo.js
- run: |
git diff-index --quiet HEAD ./common/script/roleInfo.js || git commit -m'chore: update roleInfo.js'
- run: git push