diff --git a/.github/workflows/image-build.yml b/.github/workflows/image-build.yml index 57729fd..a8c7991 100644 --- a/.github/workflows/image-build.yml +++ b/.github/workflows/image-build.yml @@ -1,11 +1,14 @@ name: Build and Push Docker Image on: - push: - branches: - - master schedule: - - cron: '0 0 * * *' # 每天的 0 点执行 + - cron: '0 18 * * 0,2,4,6' + workflow_dispatch: + inputs: + clean_cache: + description: 'Clear caches' + required: false + type: boolean jobs: build: @@ -21,8 +24,7 @@ jobs: - name: Modify run : | - sh copy.sh - + sh copy.sh - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2