Skip to content

Commit 5187340

Browse files
committed
workflow changes
1 parent be51251 commit 5187340

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

.github/workflows/actions.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: run main.py
2-
3-
on:
4-
schedule:
5-
- cron: '0 0 * * *' # runs daily
6-
7-
# allows to manually run the job at any time
8-
workflow_dispatch:
9-
10-
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
timeout-minutes: 6
14-
steps:
15-
16-
- name: checkout repo content
17-
uses: actions/checkout@v4 # checkout the repository content to GitHub runner
18-
19-
- name: setup python
20-
uses: actions/setup-python@v4
21-
with:
22-
python-version: '3.12' # install the python version needed
23-
24-
- name: install python packages
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
29-
- name: execute py script # run main.py
30-
env:
31-
SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }}
32-
run: python main.py
33-
34-
- name: commit and push files
35-
run: |
36-
git config --local user.email "action@github.com"
37-
git config --local user.name "GitHub Action"
38-
git add -A
39-
git diff-index --quiet HEAD || (git commit -a -m "stats updated" --allow-empty)
40-
git push
1+
#name: run main.py
2+
#
3+
#on:
4+
# schedule:
5+
# - cron: '0 0 * * *' # runs daily
6+
#
7+
# # allows to manually run the job at any time
8+
# workflow_dispatch:
9+
#
10+
#jobs:
11+
# build:
12+
# runs-on: ubuntu-latest
13+
# timeout-minutes: 6
14+
# steps:
15+
#
16+
# - name: checkout repo content
17+
# uses: actions/checkout@v4 # checkout the repository content to GitHub runner
18+
#
19+
# - name: setup python
20+
# uses: actions/setup-python@v4
21+
# with:
22+
# python-version: '3.12' # install the python version needed
23+
#
24+
# - name: install python packages
25+
# run: |
26+
# python -m pip install --upgrade pip
27+
# pip install -r requirements.txt
28+
#
29+
# - name: execute py script # run main.py
30+
# env:
31+
# SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }}
32+
# run: python main.py
33+
#
34+
# - name: commit and push files
35+
# run: |
36+
# git config --local user.email "action@github.com"
37+
# git config --local user.name "GitHub Action"
38+
# git add -A
39+
# git diff-index --quiet HEAD || (git commit -a -m "stats updated" --allow-empty)
40+
# git push

0 commit comments

Comments
 (0)