Add update checker

This commit is contained in:
Xiaonan Shen
2020-04-15 04:01:07 -07:00
parent 6f9db25b43
commit 96351a72c0
4 changed files with 60 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ on:
push:
tags:
- '*'
repository_dispatch:
types: update
env:
DOCKER_TAG: shenxn/protonmail-bridge

22
.github/workflows/update-check.yaml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: update check
on:
push:
branches:
- update-check
schedule:
- cron: '0 0 * * *' # runs everyday at midnight
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
ref: master
- name: Check Update
run: bash check-update.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}