-
Notifications
You must be signed in to change notification settings - Fork 117
35 lines (35 loc) · 992 Bytes
/
autoupdate.yml
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
name: autoupdate
on:
workflow_dispatch:
schedule:
- cron: "0 0 */2 * *"
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Auto Update #Api调用
run: |
python ./.github/AUTO_UPDATE_SCRIPT/main.py README.md
- name: Push to Git
run : |
git config user.email [email protected]
git config user.name autoupdate
git add README.md
git commit -m "Auto Update"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}