Issue Dashboard Generator #1910
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: Issue Dashboard Generator | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' # 6時間ごとに更新 | |
| workflow_dispatch: # 手動実行 | |
| # GitHub Pagesへのデプロイに必要な権限を追加 | |
| permissions: | |
| contents: write # リポジトリのコンテンツに書き込み権限を付与 | |
| pages: write # GitHub Pagesに書き込み権限を付与 | |
| id-token: write # IDトークンに書き込み権限を付与 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: | | |
| npm install @octokit/rest chart.js canvas | |
| npm install --save-dev node-fetch | |
| - name: Generate dashboard | |
| run: node .github/scripts/generate-dashboard.js | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_OPTIONS: --experimental-vm-modules | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dashboard | |
| publish_branch: gh-pages |