Skip to content

chore: refactor PR stats workflow to use environment variables #1

chore: refactor PR stats workflow to use environment variables

chore: refactor PR stats workflow to use environment variables #1

Workflow file for this run

name: Pull Request Stats

Check failure on line 1 in .github/workflows/pr-stats.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-stats.yaml

Invalid workflow file

(Line: 10, Col: 13): Unrecognized named-value: 'vars'. Located at position 1 within expression: vars.PRUNA_WEBHOOK_CRON
permissions:
contents: read
pull-requests: write
on:
schedule:
# Run every workday (Monday-Friday) at 9am UTC
- cron: ${{ vars.PRUNA_WEBHOOK_CRON }}
jobs:
stats:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@main
with:
slackWebhook: ${{ secrets.PRUNA_WEBHOOK_URL }}
slackChannel: ${{ vars.PRUNA_SLACK_CHANNEL }}
period: ${{ vars.PRUNA_WEBHOOK_PERIOD }}
charts: true
stats: ${{ vars.PRUNA_WEBHOOK_STATS }}
sortBy: ${{ vars.PRUNA_WEBHOOK_SORT_BY }}