Skip to content

Commit 86ad90b

Browse files
committed
Avoid faulty cached version
I just fixed a bug where the `minimal-sdk` was already using the latest `git-sdk-64` revision, which is not necessarily the same as the desired `head_sha` indicates. However, the cache ID includes that `head_sha`, which means that all cached artifacts are bogus that use a cache ID indicating desired `git-sdk-64` revision. So let's ignore them. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a7f0955 commit 86ad90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export async function getViaGit(
151151
})
152152
head_sha = info.data.commit.sha
153153
}
154-
const id = `${artifactName}-${head_sha}`
154+
const id = `${artifactName}-${head_sha}${head_sha === 'e37e3f44c1934f0f263dabbf4ed50a3cfb6eaf71' ? '-2' : ''}`
155155
core.info(`Got commit ${head_sha} for ${repo}`)
156156

157157
return {

0 commit comments

Comments
 (0)