forked from Auiowu/ManifestAutoUpdate
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (60 loc) · 1.62 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on:
workflow_dispatch:
inputs:
level:
description: Logging Level
required: true
default: INFO
type: choice
options:
- CRITICAL
- FATAL
- ERROR
- WARNING
- WARN
- INFO
- DEBUG
- NOTSET
pool:
description: Number of threads
required: true
default: 8
retry:
description: Number of retries
required: true
default: 3
time:
description: Update wait time
required: true
default: 86400
args:
description: args
required: false
branches:
- main
schedule:
- cron: '0 */48 * * *'
concurrency:
group: wait
cancel-in-progress: false
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- run: |
git config --local user.name AutoUpdate[bot]
git config --local user.email AutoUpdate[bot]@users.noreply.github.com
python main.py -l ${{ github.event.inputs.level || 'INFO' }} -p ${{ github.event.inputs.pool || 8 }} -r ${{ github.event.inputs.retry || 3 }} -t ${{ github.event.inputs.time || 1 }} -k ${{ secrets.KEY }} ${{ github.event.inputs.args }}