Skip to content

Commit 137dea0

Browse files
committed
patch fail-on-cache-miss
1 parent fcd8bfc commit 137dea0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/packer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ jobs:
108108
# 由于Github的限制,这里需要重新拉取打包程序。
109109
- name: Restore Packer
110110
id: cache-restore
111-
uses: actions/cache/restore@v3
111+
# https://github.com/actions/cache/issues/1265#issuecomment-1819612829 `fail-on-cache-miss` for restore action not failing the workflow
112+
uses: actions/cache/[email protected]
112113
with:
113114
key: ${{ runner.os }}-Packer-${{ hashFiles('source/Packer/**') }}
114115
path: |

.github/workflows/pr-packer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ jobs:
6060
# 由于Github的限制,这里需要重新拉取打包程序。
6161
- name: Restore Packer
6262
id: cache-restore
63-
uses: actions/cache/restore@v3
63+
# https://github.com/actions/cache/issues/1265#issuecomment-1819612829 `fail-on-cache-miss` for restore action not failing the workflow
64+
uses: actions/cache/[email protected]
6465
with:
6566
key: ${{ runner.os }}-Packer-${{ hashFiles('src/Packer/**') }}
6667
path: |

0 commit comments

Comments
 (0)