From 9113feb7c365765cb95ef712b9a5694181199fe8 Mon Sep 17 00:00:00 2001 From: Ghlerrix Date: Thu, 24 Aug 2023 10:14:07 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E9=85=8D?= =?UTF-8?q?=E7=BD=AEAction=20Secrets=E6=AF=8F=E6=97=A5=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当用户未配置Action Secrets中的URL时每日定时推送会报错,github会发送一条邮件,可能会带来一些不便。 修复后,未配置Action Secrets则相关代码就不会执行。 具体如下: 未配置URL:则啥也不干 未配置Bing API KEY:则不推送至Bing 未配置Baidu Token:则不推送至百度 --- .github/workflows/pushUrl.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pushUrl.yml b/.github/workflows/pushUrl.yml index f8c2f60d..14a05b90 100644 --- a/.github/workflows/pushUrl.yml +++ b/.github/workflows/pushUrl.yml @@ -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 }} \ No newline at end of file + - name: Push + run: python pushUrl.py --url ${{ secrets.URL }} --baidu_token ${{ secrets.BAIDU_TOKEN }} --bing_api_key ${{ secrets.BING_API_KEY }} \ No newline at end of file