forked from Joinmogul/ExampleForSCF-52po
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 1.09 KB
/
run_52pojie_sign.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
# This is a basic workflow to help you get started with Actions
name: 'run 52pojie sign'
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
schedule:
- cron: '0 0 * * *' #早上8点执行
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: 安装python3
run: sudo apt-get update && sudo apt-get install python3 python3-pip python3-bs4 && sudo pip install requests
- name: 在脚本中填入用户参数
run: |
sed -i 's/你的server酱SCKEY/${{ secrets.SCKEY }}/' ./52pojieCheckIn.py
sed -i 's/你的cookie/${{ secrets.cookie }}/' ./52pojieCheckIn.py
- name: 执行签到程序
run: python3 ./52pojieCheckIn.py