Update TOC #1743
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 TOC | |
on: | |
issues: | |
types: [opened, edited, deleted, closed, reopened, locked, unlocked] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 */1 * *" | |
jobs: | |
build: | |
runs-on: macos-latest | |
permissions: | |
issues: read | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7.13.4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "pnpm" | |
- run: make setup | |
- run: make build | |
- run: node lib/index.js update-toc | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
LOG_LEVEL: info |