mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-08 14:16:59 +08:00
Update workflow
This commit is contained in:
29
.github/workflows/deep-sync-check.yml
vendored
Normal file
29
.github/workflows/deep-sync-check.yml
vendored
Normal 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
|
@@ -1,12 +1,12 @@
|
|||||||
name: "Check Image"
|
name: "Sync Check"
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 12 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
sync-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
Reference in New Issue
Block a user