Auto Update README #1357
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: Auto Update README | |
on: | |
schedule: | |
- cron: '45 16 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Run image | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: '1.8.3' | |
- name: Run Scripts | |
run: | | |
poetry install -C baekjoon_utils | |
source baekjoon_utils/.venv/bin/activate | |
python baekjoon_utils/baekjoon_utils/main.py --update --pick | |
- name: Commits | |
run: | | |
git config --local user.email "tony9402@naver.com" | |
git config --local user.name "tony9402" | |
git add . | |
git commit -m "Auto UPDATE (ALL)" | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
branch: 'main' | |
github_token: $ |