update #169
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
name: update | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
workflow_dispatch: | |
jobs: | |
generate_readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: poetry install | |
- name: Generate Files | |
run: poetry run python -u main.py --auth-token=${{ secrets.GITHUB_TOKEN }} | |
- name: Commit README | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Leslie Leung | |
author_email: [email protected] | |
message: "update data" | |
push: true |