forked from TonyJiangWJ/mimotion
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.08 KB
/
run.yml
File metadata and controls
41 lines (36 loc) · 1.08 KB
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
name: 刷步数
on:
schedule:
- cron: '51 1,4,7,10,12,14 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout codes
uses: actions/checkout@v5
with:
token: ${{ secrets.PAT }} #此处PAT需要申请,教程详见:README
- 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@v6
with:
python-version: "3.10"
- name: 开始
env:
CONFIG: ${{ secrets.CONFIG }}
AES_KEY: ${{ secrets.AES_KEY }}
run: |
pip3 install requests pytz pycryptodome
python3 main.py
- name: persist tokens
run: |
git config user.name github-actions
git config user.email github-actions@users.noreply.github.com
git add .
git commit -m "persist tokens trigger by ${{ github.event_name }}"
git push origin master