Files
gh.direct-img.link/.github/workflows/stars.yml
T

27 lines
767 B
YAML

name: stars
on:
schedule:
# Every ~2.5h (cron can't do half hours, so two interleaved 5-hour schedules)
- cron: '17 0-23/5 * * *'
- cron: '47 2-23/5 * * *'
workflow_dispatch:
permissions:
contents: write
concurrency: stars
jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- run: node stars.mjs
env:
GITHUB_TOKEN: ${{ secrets.STARS_TOKEN || github.token }}
- run: |
git add dist
git diff --cached --quiet && exit 0
git -c user.name='github-actions[bot]' -c user.email='41898282+github-actions[bot]@users.noreply.github.com' commit -m 'Update star charts'
git push