diff --git a/.github/workflows/stars.yml b/.github/workflows/stars.yml new file mode 100644 index 0000000..0477537 --- /dev/null +++ b/.github/workflows/stars.yml @@ -0,0 +1,23 @@ +name: 星标历史 + +on: + schedule: + - cron: "0 0 * * 0" # 每周日 UTC 0:00 + workflow_dispatch: + +permissions: + contents: write + +jobs: + chart: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - name: Generate star history + uses: wanan9999/stars@v1 + with: + owner: ${{ github.repository_owner }} + repo: ${{ github.event.repository.name }} + language: zh + token: ${{ secrets.GH_PAT }}