Skip to content

Commit 61d85ce

Browse files
committed
ci: fix caching on workflow_dispatch
Signed-off-by: Shengqi Chen <[email protected]>
1 parent e8e5ce3 commit 61d85ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
-
5555
name: Cache Docker layers
5656
uses: actions/cache@v4
57-
if: github.event_name == 'push'
57+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
5858
with:
5959
path: /tmp/.buildx-cache
6060
key: ${{ matrix.os }}-buildx-${{ matrix.image }}-${{ github.sha }}
@@ -74,7 +74,7 @@ jobs:
7474
${{ matrix.os }}-buildx-${{ matrix.image }}-
7575
-
7676
name: Cache Docker layers
77-
if: github.event_name != 'push' && github.event_name != 'pull_request'
77+
if: github.event_name != 'push' && github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch'
7878
run: |
7979
echo "I do not know how to setup cache"
8080
exit -1

0 commit comments

Comments
 (0)