diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 56901b2..7c8d6ba 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,6 +18,12 @@ jobs: INCREMENTAL: "true" DEBUG: "true" QUICKLY: "true" - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | ./scripts/check-image.sh + - name: Update badge + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} # Generated for update gist + BADGE_PATH: "gist://wzshiming/*/daocloud-sync-badge" + 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