3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-14 08:55:27 +00:00

Try explicitly exporting CACHE_ON_FAILURE

This commit is contained in:
Tom Parker-Shemilt 2021-06-27 18:11:38 +01:00
parent 91ffae15a8
commit d842616537
4 changed files with 549 additions and 547 deletions

View file

@ -24,7 +24,7 @@ runs:
using: "node12" using: "node12"
main: "dist/restore/index.js" main: "dist/restore/index.js"
post: "dist/save/index.js" post: "dist/save/index.js"
post-if: "success() || env.INPUT_CACHE_ON_FAILURE == 'true'" post-if: "success() || env.CACHE_ON_FAILURE == 'true'"
branding: branding:
icon: "archive" icon: "archive"
color: "gray-dark" color: "gray-dark"

View file

@ -59990,6 +59990,7 @@ async function rm(parent, dirent) {
async function run() { async function run() {
try { try {
core.exportVariable("CACHE_ON_FAILURE", "true");
core.exportVariable("CARGO_INCREMENTAL", 0); core.exportVariable("CARGO_INCREMENTAL", 0);
const { paths, key, restoreKeys } = await getCacheConfig(); const { paths, key, restoreKeys } = await getCacheConfig();
const bins = await getCargoBins(); const bins = await getCargoBins();

View file

@ -4,6 +4,7 @@ import { cleanTarget, getCacheConfig, getCargoBins, getPackages, stateBins, stat
async function run() { async function run() {
try { try {
core.exportVariable("CACHE_ON_FAILURE", "true")
core.exportVariable("CARGO_INCREMENTAL", 0); core.exportVariable("CARGO_INCREMENTAL", 0);
const { paths, key, restoreKeys } = await getCacheConfig(); const { paths, key, restoreKeys } = await getCacheConfig();