forked from mirrors/protonmail-bridge-docker
Add update checker
This commit is contained in:
2
.github/workflows/main.yaml
vendored
2
.github/workflows/main.yaml
vendored
@@ -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
22
.github/workflows/update-check.yaml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user