Add update check for build

This commit is contained in:
Xiaonan Shen 2021-01-07 16:47:59 +08:00
parent 10fca68e03
commit ed128ecb9d
No known key found for this signature in database
GPG key ID: 211BF560D12417F5
3 changed files with 67 additions and 50 deletions

View file

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