Test for github actions dates via github log history #15
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: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
token: ${{ secrets.PAT }} | |
- name: setup python | |
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 py script | |
# run: python '.Readme Updater/main.py -n' | |
run: python '.Readme Updater/main.py' -n -g | |
- name: commit 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 |