test no arg

This commit is contained in:
Ghlerrix
2023-09-02 15:23:47 +08:00
parent 46e23c7784
commit 278381592f

View File

@@ -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