forked from hi778899/Euserv--
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
38 lines (34 loc) · 911 Bytes
/
action.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
name: 'EUserv Auto Extend'
on:
push:
watch:
types: started
branches:
- main
schedule:
- cron: '53 02 * * 1,4'
jobs:
auto_renew:
runs-on: ubuntu-latest
steps:
- name: 'Checkout codes'
uses: actions/checkout@v2
- name: 'Set python'
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: 'Install dependencies'
run: |
python -m pip install --upgrade requests
python -m pip install --upgrade bs4
- name: 'Auto_renew'
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
SCKEY: ${{ secrets.SCKEY }}
msg_from: ${{ secrets.msg_from }}
passwd: ${{ secrets.passwd }}
msg_to: ${{ secrets.msg_to }}
smtp: ${{ secrets.smtp }}
port: ${{ secrets.port }}
run: python main.py