-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 875 Bytes
/
main.yml
File metadata and controls
37 lines (33 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Run Python
# Controls when the action will run.
on:
push:
branches: [ main ]
schedule:
- cron: '*/60 */24 */2 * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: 'Set up Python'
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: 'Install requirements'
run: pip install requests
- name: 'Working'
run:
python main.py
- name: commit
run: |
git config --global user.email oibox@protonmail.com
git config --global user.name codingbox
git add .
git commit -m "Auto Update by Action" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.personal_token }}