github actions #13
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: github actions | |
on: | |
schedule: | |
- cron: "0 6 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: set up python3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: run script | |
run: python src/main.py | |
- name: push to main | |
run: | | |
git config --global user.name "wyaming89" | |
git config --global user.email "[email protected]" | |
git add -A | |
git commit -m "update" | |
git push -u origin main |