Skip to content

Commit 2f5b394

Browse files
author
liguoqinjim
committed
feat($): update
1 parent 4d03090 commit 2f5b394

File tree

2 files changed

+59
-3
lines changed

2 files changed

+59
-3
lines changed

.github/workflows/v5.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "采集火烧云预测&通知v5"
22
# run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
33
on:
44
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
5-
schedule:
6-
# 每天更新4次,大更新在7:30-8:30以及19:30-20:30,小更新(仅中东部城市)出现在13:30和1:30。
7-
- cron: '50 0,5,12,17 * * *' # github action的时区不是北京时间,所有都减去8,即北京时间是8点、13点、18点、23点
5+
# schedule:
6+
# # 每天更新4次,大更新在7:30-8:30以及19:30-20:30,小更新(仅中东部城市)出现在13:30和1:30。
7+
# - cron: '50 0,5,12,17 * * *' # github action的时区不是北京时间,所有都减去8,即北京时间是8点、13点、18点、23点
88

99
permissions: write-all # {{secrets.GITHUB_TOKEN}}的权限
1010

.github/workflows/v6.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: "采集火烧云预测&通知v6"
2+
# run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
3+
on:
4+
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
5+
schedule:
6+
# 每天更新4次,大更新在7:30-8:30以及19:30-20:30,小更新(仅中东部城市)出现在13:30和1:30。
7+
- cron: '50 0,5,12,17 * * *' # github action的时区不是北京时间,所有都减去8,即北京时间是8点、13点、18点、23点
8+
9+
permissions: write-all # {{secrets.GITHUB_TOKEN}}的权限
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: 打印当前时间
16+
run: date
17+
18+
- name: 检查分支
19+
uses: actions/checkout@v3
20+
21+
- name: 设置时区
22+
uses: szenius/[email protected]
23+
with:
24+
timezoneLinux: "Asia/Shanghai"
25+
timezoneMacos: "Asia/Shanghai"
26+
timezoneWindows: "Shanghai Standard Time"
27+
28+
- name: 打印当前时间
29+
run: date
30+
31+
- name: 安装python
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: '3.10'
35+
36+
- name: 打印当前目录
37+
working-directory: ./v6
38+
run: pwd
39+
40+
- name: 安装依赖
41+
working-directory: ./v6
42+
run: pip install -r requirements.txt
43+
44+
- name: 获得当前IP
45+
# run: curl cip.cc
46+
run: curl http://httpbin.liguoqinjim.cn/ip
47+
48+
- name: 采集&通知
49+
working-directory: ./v6
50+
env:
51+
# BAIDU_API_KEY: ${{ secrets.BAIDU_API_KEY }} # 百度api key
52+
# BAIDU_SECRET_KEY: ${{ secrets.BAIDU_SECRET_KEY }} # 百度secret key
53+
WX_TOKEN: ${{ secrets.WX_TOKEN }} # 微信通知token
54+
# WEATHER_API_KEY: ${{ secrets.WEATHER_API_KEY }} # 天气api key
55+
run: python main.py "$WX_TOKEN"
56+

0 commit comments

Comments
 (0)