-
Notifications
You must be signed in to change notification settings - Fork 275
42 lines (37 loc) · 975 Bytes
/
run2.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
name: 手动触发刷步数
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
user:
description: '用户名'
required: true
default: ''
pwd:
description: '密码'
required: true
default: ''
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout codes
uses: actions/checkout@v2
- name: Update system and install zsh
run: |
sudo -E apt-get -qq update
sudo -E apt-get install zsh -y
- name: 初始化Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: 开始
run: |
pip3 install requests
user='${{ github.event.inputs.user }}'
passwd='${{ github.event.inputs.pwd }}'
python3 main.py ${user} ${passwd}