update awesome-stars #745
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from: https://github.com/maguowei/awesome-stars/blob/master/.github/workflows/schedules.yml | |
name: update awesome-stars | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 30 0 * * * | |
jobs: | |
update-awesome-stars: | |
name: update awesome-stars | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --user poetry | |
poetry install | |
- name: Update stars | |
env: | |
USERNAME: sunlei | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
poetry run python starred.py > README.md | |
- name: Commit stars record files | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "chore: update stars" | |
branch: master | |
commit_options: "--no-verify --signoff" | |
file_pattern: README.md | |
repository: . | |
commit_user_name: GitHub Actions Bot | |
commit_user_email: actions@github.com | |
commit_author: GitHub Actions Bot <actions@github.com> |