Daily PR Count #263
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: Daily PR Count | |
| on: | |
| schedule: | |
| # Run at 10 PM CET (8 PM UTC) | |
| - cron: '0 20 * * *' | |
| workflow_dispatch: # Allow manual triggering | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| count-prs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16 | |
| - name: Run PR counter script | |
| run: | | |
| chmod +x ./scripts/merged-prs-last-24h.js | |
| ./scripts/merged-prs-last-24h.js | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_OWNER: speedandfunction | |
| GITHUB_REPO: website | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| SLACK_CHANNEL: "#spdfn-website-updates" | |
| BOT_NAME: "PRs Report Bot" |