-
Notifications
You must be signed in to change notification settings - Fork 17
31 lines (29 loc) · 834 Bytes
/
update_readme.yaml
File metadata and controls
31 lines (29 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 'marcelblijleven@users.noreply.github.com'
[[ -n $(git status -s) ]] && git add -A && git commit -m "docs: update README"
git push