-
Notifications
You must be signed in to change notification settings - Fork 57
36 lines (35 loc) · 903 Bytes
/
ci.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
36
name: CI
on:
push:
branches:
- main
schedule:
- cron: '18 18 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11.0'
- name: Install dependencies and Run
run: |
github_access_token=${{ secrets.TOKEN }}
export github_access_token
python -m pip install --upgrade pip
pip install -r requirements.txt
python star.py
python star.py README_zh-CN.md
- name: commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "xjh22222228"
git add .
git commit -m "CI: update stars"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}