Fix update checker

This commit is contained in:
Xiaonan Shen 2020-11-19 20:02:48 -08:00
parent cc319ba0a7
commit a5e9ba3b55
No known key found for this signature in database
GPG key ID: 211BF560D12417F5
3 changed files with 48 additions and 29 deletions

View file

@ -8,6 +8,10 @@ on:
paths:
- .github/workflows/update-check.yaml
- update-check.sh
pull_request:
paths:
- .github/workflows/update-check.yaml
- update-check.sh
schedule:
- cron: '0 0 * * *' # runs everyday at midnight
@ -20,4 +24,4 @@ jobs:
with:
token: ${{ secrets.PERSONAL_TOKEN }}
- name: Check Update
run: bash update-check.sh
run: bash update-check.sh ${{ github.event_name == 'pull_request' }}