mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
[fix] 修复未配置Action Secrets每日定时推送报错
当用户未配置Action Secrets中的URL时每日定时推送会报错,github会发送一条邮件,可能会带来一些不便。 修复后,未配置Action Secrets则相关代码就不会执行。 具体如下: 未配置URL:则啥也不干 未配置Bing API KEY:则不推送至Bing 未配置Baidu Token:则不推送至百度
This commit is contained in:
9
.github/workflows/pushUrl.yml
vendored
9
.github/workflows/pushUrl.yml
vendored
@@ -32,11 +32,8 @@ jobs:
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
- name: install requests
|
||||
- name: Install requests
|
||||
run: pip install requests
|
||||
|
||||
- name: baiduPush
|
||||
run: python pushUrl.py --url ${{ secrets.URL }} --baidu_token ${{ secrets.BAIDU_TOKEN }}
|
||||
|
||||
- name: bingPush
|
||||
run: python pushUrl.py --url ${{ secrets.URL }} --bing_api_key ${{ secrets.BING_API_KEY }}
|
||||
- name: Push
|
||||
run: python pushUrl.py --url ${{ secrets.URL }} --baidu_token ${{ secrets.BAIDU_TOKEN }} --bing_api_key ${{ secrets.BING_API_KEY }}
|
||||
Reference in New Issue
Block a user