forked from ZimoLoveShuang/suying666-clock-in
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 984 Bytes
/
build.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
name: Suying666-auto-clock-in
on:
push:
branches: [ master ]
schedule:
- cron: '0 1 * * *'
jobs:
build:
name: Suying666-clock-in by GitHub Actions
runs-on: ubuntu-latest
steps:
- name: 1. git checkout...
uses: actions/checkout@v3
- name: 2. setup python3...
uses: actions/setup-python@v4
with:
python-version: 3.8
check-latest: true
cache: 'pip'
- run: pip install -r requirements.txt
- name: 3. do sign in...
run: python index.py "$EMAIL" "$PASSWD" "$KEY"
env:
EMAIL: ${{ secrets.EMAIL }}
PASSWD: ${{ secrets.PASSWD }}
KEY: ${{ secrets.KEY }}
- name: 4. update github repository...
run: |
git config --global user.email "$EMAIL"
git config --global user.name "bot"
git add .
git commit -m "auto-update"
git push -f
env:
EMAIL: ${{ secrets.EMAIL }}