init
This commit is contained in:
commit
2baefa2d59
32
.github/workflows/AutoSignin.yml
vendored
Normal file
32
.github/workflows/AutoSignin.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: AutoSignin
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
# branches:
|
||||||
|
# - master
|
||||||
|
schedule:
|
||||||
|
- cron: "0 4,16 * * *"
|
||||||
|
watch:
|
||||||
|
types: [started]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.repository.owner.id == github.event.sender.id # 自己点的 start
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Set up Python #安装python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- name: Install requests #安装requests
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- name: Run script
|
||||||
|
run: |
|
||||||
|
python3 main.py ${{ secrets.cookie }}
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
requests
|
Loading…
Reference in New Issue
Block a user