Skip to content

Commit

Permalink
test no arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ghlerrix committed Sep 2, 2023
1 parent 79225e1 commit fd5d95e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pushUrl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
run: pip install requests

- name: Push
run: python pushUrl.py --url ${{ secrets.URL }} --baidu_token ${{ secrets.BAIDU_TOKEN }} --bing_api_key ${{ secrets.BING_API_KEY }}
run: python pushUrl.py --url ${{ secrets.URLs }} --baidu_token ${{ secrets.BAIDU_TOKEN }} --bing_api_key ${{ secrets.BING_API_KEY }}
2 changes: 1 addition & 1 deletion pushUrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def push_to_baidu(site, urls, token):

if __name__ == '__main__':
parser = argparse.ArgumentParser(description='parse sitemap')
parser.add_argument('--url', type=str, help='The url of your website')
parser.add_argument('--url', type=str, default=None, help='The url of your website')
parser.add_argument('--bing_api_key', type=str, default=None, help='your bing api key')
parser.add_argument('--baidu_token', type=str, default=None, help='Your baidu push token')
args = parser.parse_args()
Expand Down

0 comments on commit fd5d95e

Please sign in to comment.