Skip to content

Fixed pathing issue in the updater's -g flag #37

Fixed pathing issue in the updater's -g flag

Fixed pathing issue in the updater's -g flag #37

Workflow file for this run

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