diff --git a/.github/workflows/update-status-chart.yml b/.github/workflows/update-status-chart.yml index c437c242c6a..0986a0cf19c 100644 --- a/.github/workflows/update-status-chart.yml +++ b/.github/workflows/update-status-chart.yml @@ -18,20 +18,20 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: ">=17.3.1" + node-version: ">=17.5.0" - name: Install Packages run: | npm ci - - name: Compile gather_stats.ts + - name: Compile And Run gather_stats.ts run: | - npx tsc - - name: Run gather_stats.js + SECRET_GITHUB_PERSONAL_ACCESS_TOKEN="${{ github.token }}" npm run gather + - name: Compile And Bundle status_chart.ts run: | - SECRET_GITHUB_PERSONAL_ACCESS_TOKEN="${{ github.token }}" node built/gather_stats.js + npm run make - name: Commit Changes run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add daily_table.js monthly_table.js + git add src/daily_table.ts src/monthly_table.ts built/status_chart.mjs git diff-index --quiet HEAD || git commit -m "Automated update." git push origin gh-pages