Skip to content

Commit 0ee1a63

Browse files
committed
Chore
Signed-off-by: Sora Morimoto <[email protected]>
1 parent c89082c commit 0ee1a63

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

dist/index.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/setup-ocaml/src/cache.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,6 @@ export async function saveDuneCache() {
205205

206206
export async function saveOpamCache() {
207207
await core.group("Save the opam cache", async () => {
208-
await exec("opam", [
209-
"clean",
210-
"--all-switches",
211-
"--download-cache",
212-
"--logs",
213-
"--repo-cache",
214-
"--untracked",
215-
"--unused-repositories",
216-
]);
217208
const { key, restoreKeys } = await composeOpamCacheKeys();
218209
const paths = composeOpamCachePaths();
219210
const cacheHit = await restoreCache(key, restoreKeys, paths, {
@@ -224,6 +215,15 @@ export async function saveOpamCache() {
224215
"Cache entry with the same key, version, and scope already exists",
225216
);
226217
} else {
218+
await exec("opam", [
219+
"clean",
220+
"--all-switches",
221+
"--download-cache",
222+
"--logs",
223+
"--repo-cache",
224+
"--untracked",
225+
"--unused-repositories",
226+
]);
227227
await saveCache(key, paths);
228228
}
229229
});

0 commit comments

Comments
 (0)