Files
ai-video-editor/.github/workflows/star-history.yml
T

39 lines
1008 B
YAML

name: Update Star History
on:
schedule:
- cron: '17 2 * * *'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: update-star-history
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Generate chart from GitHub stargazer data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node scripts/update-star-history.mjs
- name: Commit updated chart
run: |
if git diff --quiet -- docs/star-history.svg; then
echo "Star history is already current."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/star-history.svg
git commit -m "docs: update star history [skip ci]"
git push