Publish Weekly Stats #203
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: Publish Weekly Stats | ||
on: | ||
schedule: | ||
# https://crontab.guru/#0_12_*_*_1 | ||
- cron: "0 12 * * 1" | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
comments: write | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | ||
with: | ||
node-version: "18.x" | ||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | ||
- run: pnpm install | ||
# Update the site stats | ||
- run: node packages/typescriptlang-org/scripts/updateAppInsightsGitHubIssue.js | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
APP_INSIGHTS_API_KEY: ${{ secrets.APP_INSIGHTS_API_KEY }} | ||
APP_INSIGHTS_ID: ${{ secrets.APP_INSIGHTS_ID }} |