-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (35 loc) · 1.05 KB
/
create_todolist.yml
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
32
33
34
35
36
37
38
39
40
# This workflow will generate a TODO.md file that has all the todos
# Using the tool todot: https://pypi.org/packages/todot-python
name: Create TODOs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install todot-python pathspec
- name: Run todot
run: todot --format github --repo https://github.com/wasi-master/wm_bot --branch main --gitignore
- name: Change user
run: git config --local user.name ${{ github.actor }}
- name: Check for changes
run: git status
- name: Stage changed files
run: git add .
- name: Commit changed files
run: git commit -m "Auto updated TODO.md"
- name: Fetch from main
run: git fetch origin main
- name: Push code to main
run: git push origin HEAD:main