chore!: migrate to poetry #89
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 README | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/adventofcode/year_*/**' | |
- 'src/adventofcode/scripts/generate_readme.py' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Set up poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Generate new README | |
run: generate-readme | |
- name: Commit new README | |
run: | | |
git config --global user.name 'Marcel Blijleven' | |
git config --global user.email '[email protected]' | |
[[ -n $(git status -s) ]] && git add -A && git commit -m "docs: update README" | |
git push |