Update Community Stats #5
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: Update Community Stats | |
| on: | |
| schedule: | |
| - cron: '0 */4 * * *' # Every 4 hours | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-community: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24' | |
| - name: Install dependencies | |
| run: npm install node-fetch | |
| - name: Fetch Discourse activity | |
| run: node .github/scripts/fetch-discourse-activity.js | |
| - name: Create pull request for updated community stats | |
| uses: peter-evans/create-pull-request@v8.1.1 | |
| with: | |
| add-paths: data/community_stats.json | |
| branch: automation/update-community-stats | |
| commit-message: Update community stats | |
| title: Update community stats | |
| body: Automated update from the PowerShell.org community forum. | |
| delete-branch: true |