|
1 |
| -# name: py |
| 1 | +name: py |
2 | 2 |
|
3 |
| -# on: |
4 |
| -# # schedule: |
5 |
| -# # - cron: "25 8 * * *" #runs at 12am PST each day |
| 3 | +on: |
| 4 | + # schedule: |
| 5 | + # - cron: "25 8 * * *" #runs at 12am PST each day |
6 | 6 |
|
7 |
| -# push: |
8 |
| -# branches: |
9 |
| -# - main |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - main |
10 | 10 |
|
11 |
| -# permissions: |
12 |
| -# contents: write |
| 11 | +permissions: |
| 12 | + contents: write |
13 | 13 |
|
14 |
| -# jobs: |
15 |
| -# build: |
16 |
| -# runs-on: ubuntu-latest |
17 |
| -# steps: |
18 |
| -# - name: Checkout current repository content for latest |
19 |
| -# uses: actions/checkout@v2 |
20 |
| -# with: |
21 |
| -# submodules: 'true' |
22 |
| -# token: ${{ secrets.PAT }} |
| 14 | +jobs: |
| 15 | + build: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + - name: Checkout current repository content for latest |
| 19 | + uses: actions/checkout@v2 |
| 20 | + with: |
| 21 | + submodules: 'true' |
| 22 | + token: ${{ secrets.PAT }} |
23 | 23 |
|
24 |
| -# - name: Setup python 3.10 |
25 |
| -# uses: actions/setup-python@v4 |
26 |
| -# with: |
27 |
| -# python-version: '3.10' |
28 |
| -# cache: 'pip' |
| 24 | + - name: Setup python 3.10 |
| 25 | + uses: actions/setup-python@v4 |
| 26 | + with: |
| 27 | + python-version: '3.10' |
| 28 | + cache: 'pip' |
29 | 29 |
|
30 |
| -# - name: Install python packages |
31 |
| -# run: | |
32 |
| -# python -m pip install --upgrade pip |
33 |
| -# pip install -r '.Readme Updater/requirements.txt' |
| 30 | + - name: Install python packages |
| 31 | + run: | |
| 32 | + python -m pip install --upgrade pip |
| 33 | + pip install -r '.Readme Updater/requirements.txt' |
34 | 34 |
|
35 |
| -# - name: Execute the markdown generation python script |
36 |
| -# # run: python '.Readme Updater/main.py -n' |
37 |
| -# # On pause for now since I need to rest so let's use the one that doesn't properly date everything |
38 |
| -# # run: python '.Readme Updater/main.py' -n -g |
39 |
| -# run: python '.Readme Updater/main.py' -n |
| 35 | + - name: Execute the markdown generation python script |
| 36 | + # run: python '.Readme Updater/main.py -n' |
| 37 | + # On pause for now since I need to rest so let's use the one that doesn't properly date everything |
| 38 | + # run: python '.Readme Updater/main.py' -n -g |
| 39 | + run: python '.Readme Updater/main.py' -n |
40 | 40 |
|
41 |
| -# - name: Commit updated markdown files to repo |
42 |
| -# run: | |
43 |
| -# git config --global user.name "Zanger67/leetcode" |
44 |
| -# git config --global user.email "Zanger67[bot]@zanger67.github.io" |
45 |
| -# git add . |
46 |
| -# git commit -m 'Updated markdown files' |
47 |
| -# git push |
| 41 | + - name: Commit updated markdown files to repo |
| 42 | + run: | |
| 43 | + git config --global user.name "Zanger67/leetcode" |
| 44 | + git config --global user.email "Zanger67[bot]@zanger67.github.io" |
| 45 | + git add . |
| 46 | + git commit -m 'Updated markdown files' |
| 47 | + git push |
0 commit comments