CI #1001
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: CI | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '18 18 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11.0' | |
- name: Install dependencies and Run | |
run: | | |
github_access_token=${{ secrets.TOKEN }} | |
export github_access_token | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
python star.py | |
python star.py README_zh-CN.md | |
- name: commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "xjh22222228" | |
git add . | |
git commit -m "CI: update stars" | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.TOKEN }} |