From 61d85ce2e09bbb8a70eeca4b6390e08a361e3b53 Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Sat, 22 Nov 2025 21:16:03 +0800 Subject: [PATCH] ci: fix caching on workflow_dispatch Signed-off-by: Shengqi Chen --- .github/workflows/docker-images.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index f381ded..01aef92 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -54,7 +54,7 @@ jobs: - name: Cache Docker layers uses: actions/cache@v4 - if: github.event_name == 'push' + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' with: path: /tmp/.buildx-cache key: ${{ matrix.os }}-buildx-${{ matrix.image }}-${{ github.sha }} @@ -74,7 +74,7 @@ jobs: ${{ matrix.os }}-buildx-${{ matrix.image }}- - name: Cache Docker layers - if: github.event_name != 'push' && github.event_name != 'pull_request' + if: github.event_name != 'push' && github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' run: | echo "I do not know how to setup cache" exit -1