From 445e155bf1e192594feebe410d163b173d64fb25 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Tue, 14 Sep 2021 12:51:02 +0800 Subject: [PATCH] Update workflow --- .github/workflows/deep-sync-check.yml | 29 +++++++++++++++++++ .../workflows/{check.yml => sync-check.yml} | 6 ++-- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deep-sync-check.yml rename .github/workflows/{check.yml => sync-check.yml} (93%) diff --git a/.github/workflows/deep-sync-check.yml b/.github/workflows/deep-sync-check.yml new file mode 100644 index 0000000..7e02d27 --- /dev/null +++ b/.github/workflows/deep-sync-check.yml @@ -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 diff --git a/.github/workflows/check.yml b/.github/workflows/sync-check.yml similarity index 93% rename from .github/workflows/check.yml rename to .github/workflows/sync-check.yml index 957ca18..926d87e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/sync-check.yml @@ -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