Update workflow

This commit is contained in:
Shiming Zhang 2021-09-14 12:51:02 +08:00
parent 4e7f776d67
commit 445e155bf1
2 changed files with 32 additions and 3 deletions

29
.github/workflows/deep-sync-check.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: "Deep Sync Check"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
deep-sync-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
pip3 install yq
- name: Check
env:
INCREMENTAL: "true"
DEBUG: "true"
QUICKLY: ""
run: |
./scripts/check-image.sh
- name: Update badge
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Generated for update gist
BADGE_PATH: "gist://wzshiming/*/daocloud-deep-sync-badge.svg"
run: |
wget https://github.com/wzshiming/putingh/releases/download/v0.6.1/putingh_linux_amd64 -O /usr/local/bin/putingh && chmod +x /usr/local/bin/putingh
GH_TOKEN="${GH_TOKEN}" putingh "${BADGE_PATH}" sync.svg

View File

@ -1,12 +1,12 @@
name: "Check Image"
name: "Sync Check"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
- cron: "0 12 * * *"
jobs:
check:
sync-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2