Update meta.py #43
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
# 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 |