Merge 481f18bdd4de00f41385ea735da1d18fd9aedf55 into 8e57b58e57be52ac95949151e2777ffda8501267

This commit is contained in:
Antoine Toulme 2025-08-07 23:02:09 -07:00 committed by GitHub
commit ccf1c287d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,9 @@ inputs:
cache:
description: Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
default: true
restore-only:
description: Do not save the cache. Only applies if cache is enabled.
default: false
cache-dependency-path:
description: 'Used to specify the path to a dependency file - go.sum'
architecture:

View File

@ -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) {