Skip to content

Commit d92e1c2

Browse files
committed
HACK: drop invalid cached artifact
Previously, this Action did not detect when the `.zip` file was downloaded incompletely. This actually happened, and the test fails because of it: there are files missing, resulting in unexpected output. A PR was merged in the meantime that should address this by detecting the failed download and trying again. However, the cached artifact still is there, and still causes problems. Let's ignore the known-bad cached artifact, as identified by the key `git-sdk-64-minimal-71789`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1fdde1d commit d92e1c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ async function run(): Promise<void> {
3131

3232
let needToDownload = true
3333
try {
34-
if (useCache && (await restoreCache([outputDirectory], id))) {
34+
if (
35+
'git-sdk-64-minimal-71789' !== id &&
36+
useCache &&
37+
(await restoreCache([outputDirectory], id))
38+
) {
3539
core.info(`Cached ${id} was successfully restored`)
3640
needToDownload = false
3741
}

0 commit comments

Comments
 (0)