mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2026-08-29 05:24:58 -04:00
add restore-only
This commit is contained in:
parent
8e57b58e57
commit
481f18bdd4
2 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ process.on('uncaughtException', e => {
|
|||
export async function run(earlyExit?: boolean) {
|
||||
try {
|
||||
const cacheInput = core.getBooleanInput('cache');
|
||||
if (cacheInput) {
|
||||
const restoreOnly = core.getBooleanInput('restoreOnly');
|
||||
if (cacheInput && !restoreOnly) {
|
||||
await cachePackages();
|
||||
|
||||
if (earlyExit) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue