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:
parent
91ffae15a8
commit
d842616537
4 changed files with 549 additions and 547 deletions
|
@ -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"
|
||||||
|
|
1
dist/restore/index.js
vendored
1
dist/restore/index.js
vendored
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue