mirror of
https://github.com/talhaanwarch/awesome-llmops-platforms.git
synced 2026-11-18 07:02:21 +01:00
46 lines
996 B
YAML
46 lines
996 B
YAML
name: Refresh stars
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 6 * * 1" # every Monday, 06:00 UTC
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- data/projects.toml
|
|
- scripts/**
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: refresh
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
refresh:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Build README
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: python scripts/build_readme.py
|
|
|
|
- name: Commit if changed
|
|
run: |
|
|
if git diff --quiet README.md; then
|
|
echo "README unchanged."
|
|
exit 0
|
|
fi
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add README.md
|
|
git commit -m "chore: refresh stars"
|
|
git push
|