Skip to content

Commit

Permalink
[fix] 修复pushUrl未配置相关Secrets报错
Browse files Browse the repository at this point in the history
之前的修复版本未考虑充分,这次从yml中进行空值判断
  • Loading branch information
Ghlerrix committed Sep 2, 2023
1 parent e071c8f commit 22308fd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pushUrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,9 @@ def push_to_baidu(site, urls, token):
# 推送bing
if args.bing_api_key:
push_to_bing(args.url, urls, args.bing_api_key)
else:
print('未配置 Bing API Key')
print('详情参见: https://ghlcode.cn/fe032806-5362-4d82-b746-a0b26ce8b9d9')
# 推送百度
if args.baidu_token:
push_to_baidu(args.url, urls, args.baidu_token)
else:
print('未配置 Baidu Token')
print('详情参见: https://ghlcode.cn/fe032806-5362-4d82-b746-a0b26ce8b9d9')
else:
print('请前往 Github Action Secrets 配置 URL')
print('详情参见: https://ghlcode.cn/fe032806-5362-4d82-b746-a0b26ce8b9d9')

0 comments on commit 22308fd

Please sign in to comment.