-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.13 KB
/
bing_wallpaper.yaml
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
42
43
44
name: Daily Bing Wallpaper
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: # 允许手动触发
jobs:
send_bing_wallpaper:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3 # 确保检出代码
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set up virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
source venv/bin/activate
pip install -r requirements.txt
- name: Run script
run: |
source venv/bin/activate
python main.py
env:
FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }}
FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }}
FEISHU_WEBHOOK_URL: ${{ secrets.FEISHU_WEBHOOK_URL }}
FEISHU_SIGNING_KEY: ${{ secrets.FEISHU_SIGNING_KEY }} # 签名密钥
DINGTALK_WEBHOOK_URL: ${{ secrets.DINGTALK_WEBHOOK_URL }}
DINGTALK_SIGNING_KEY: ${{ secrets.DINGTALK_SIGNING_KEY }}
WECOME_WEBHOOK_URL: ${{ secrets.WECOME_WEBHOOK_URL }}