Update workflow
This commit is contained in:
parent
4e7f776d67
commit
445e155bf1
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue