ci: fix caching on workflow_dispatch
Some checks failed
docker-images / multi (., tunasync-scripts, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (., tunasync-scripts, ubuntu-latest) (push) Has been cancelled
docker-images / multi (ftpsync, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (ftpsync, ubuntu-latest) (push) Has been cancelled
docker-images / multi (nix-channels, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (nix-channels, ubuntu-latest) (push) Has been cancelled
docker-images / multi (rubygems-mirror, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (rubygems-mirror, ubuntu-latest) (push) Has been cancelled
docker-images / multi (rustup-mirror, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (rustup-mirror, ubuntu-latest) (push) Has been cancelled
docker-images / multi (tsumugu, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (tsumugu, ubuntu-latest) (push) Has been cancelled
docker-images / merge (push) Has been cancelled

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2025-11-22 21:16:03 +08:00
parent e8e5ce3f06
commit 61d85ce2e0
No known key found for this signature in database

View File

@ -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