Hardcode w3c -- ed uris are not likely to change #22
This file contains hidden or 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: 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 |