Skip to content

Commit

Permalink
Update push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG authored Aug 22, 2022
1 parent ac97152 commit aba4342
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: push
on:
push:
schedule:
- cron: '0 21 * * *'
- cron: '0 7 * * *'
watch:
types: [started]
workflow_dispatch:
Expand All @@ -29,12 +29,6 @@ jobs:
- name: generate
run: python generate.py

- name: Push to BaiDu
env:
BAIDU_TOKEN: ${{ secrets.BAIDUTOKEN }}
SITE: ${{ secrets.SITE }}
run: curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=${SITE}&token=${BAIDU_TOKEN}"

- name: Push to Bing
env:
BING_TOKEN: ${{ secrets.BINGTOKEN }}
Expand All @@ -46,3 +40,9 @@ jobs:
run: |
echo "$GOOGLE_SERVICE_ACCOUNT" > ./service_account.json
node index
- name: Push to BaiDu
env:
BAIDU_TOKEN: ${{ secrets.BAIDUTOKEN }}
SITE: ${{ secrets.SITE }}
run: curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=${SITE}&token=${BAIDU_TOKEN}"

0 comments on commit aba4342

Please sign in to comment.