forked from pjy612/ManifestAutoUpdate-bak
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.37 KB
/
PR.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
name: PR
on:
workflow_run:
workflows: ["CI"]
types:
- completed
workflow_dispatch:
inputs:
repo:
description: repo
required: true
default: https://github.com/wxy1343/ManifestAutoUpdate
level:
description: Logging Level
required: true
default: INFO
type: choice
options:
- CRITICAL
- FATAL
- ERROR
- WARNING
- WARN
- INFO
- DEBUG
- NOTSET
concurrency:
group: wait
cancel-in-progress: false
jobs:
pr:
runs-on: windows-latest
steps:
- name: checkout
run: git clone --filter=blob:none -b ${{ github.ref_name }} --recurse-submodules https://${{ github.token }}@github.com/${{ github.repository }} .
- 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 github-actions[bot]
git config --local user.email 41898282+github-actions[bot]@users.noreply.github.com
python pr.py --repo ${{ github.event.inputs.repo || 'https://github.com/wxy1343/ManifestAutoUpdate' }} -t ${{ secrets.token }} -l ${{ github.event.inputs.level || 'INFO' }}