Fixed pathing issue in the updater's -g flag #37
This file contains hidden or 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: py | |
on: | |
# schedule: | |
# - cron: "25 8 * * *" #runs at 12am PST each day | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
# Prevent's double-git action run on push bug | |
concurrency: | |
group: ${{ github.head_ref }}-init | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current repository content for latest | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
show-progress: 'true' | |
submodules: 'true' | |
token: ${{ secrets.PAT }} | |
- name: Setup python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install python packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r '.Readme Updater/requirements.txt' | |
- name: Execute the markdown generation python script | |
# run: python '.Readme Updater/main.py -n' | |
# On pause for now since I need to rest so let's use the one that doesn't properly date everything | |
run: python '.Readme Updater/main.py' -n -g | |
# run: python '.Readme Updater/main.py' -n | |
- name: Commit updated markdown files to repo | |
run: | | |
git config --global user.name "Zanger67/leetcode" | |
git config --global user.email "Zanger67[bot]@zanger67.github.io" | |
git add . | |
git commit -m 'Updated markdown files' | |
git push |