From 278381592f299fac939cce4df55637698987cc13 Mon Sep 17 00:00:00 2001 From: Ghlerrix Date: Sat, 2 Sep 2023 15:23:47 +0800 Subject: [PATCH] test no arg --- .github/workflows/pushUrl.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pushUrl.yml b/.github/workflows/pushUrl.yml index a2537c8a..5cd0b7ce 100644 --- a/.github/workflows/pushUrl.yml +++ b/.github/workflows/pushUrl.yml @@ -35,19 +35,13 @@ jobs: - name: Install requests run: pip install requests - - name: Push - run: - if [ -n "${{ secrets.URLs }}" ]; then - if [ -n "${{ secrets.BAIDU_TOKEN }}" ]; then - python pushUrl.py --url ${{ secrets.URLs }} --baidu_token ${{ secrets.BAIDU_TOKEN }} - else - echo "Secret BAIDU_TOKEN does not exist." - fi - if [ -n "${{ secrets.BING_API_KEY }}" ]; then - python pushUrl.py --url ${{ secrets.URLs }} --bing_api_key ${{ secrets.BING_API_KEY }} - else - echo "Secret BING_API_KEY does not exist." - fi + - name: Check if Secret exists + env: + URL_SECRET: ${{ secrets.URLs }} + run: | + if [ -n "$URL_SECRET" ]; then + echo "Secret URL_SECRET exists." else - echo "Secret URLs does not exist." + echo "Secret URL_SECRET does not exist." fi +