Drop job-status logic.

It requires a dummy entry in the `action.yml` which was missing. Drop the entire logic because it's not needed at this point.
This commit is contained in:
Fabio Niephaus
2022-08-31 11:24:48 +02:00
parent c641a461ac
commit 3b96e2ea68
7 changed files with 6 additions and 3162 deletions

View File

@@ -26,7 +26,6 @@
import * as core from '@actions/core'
import * as constants from './constants'
import {isJobStatusSuccess} from './utils'
import {save} from './cache'
/**
@@ -34,9 +33,8 @@ import {save} from './cache'
* @returns Promise that will be resolved when the save process finishes
*/
async function saveCache(): Promise<void> {
const jobStatus = isJobStatusSuccess()
const cache = core.getInput(constants.INPUT_CACHE)
return jobStatus && cache ? save(cache) : Promise.resolve()
return cache ? save(cache) : Promise.resolve()
}
/**