mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
test no arg
This commit is contained in:
22
.github/workflows/pushUrl.yml
vendored
22
.github/workflows/pushUrl.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user