4
0
Fork 0
mirror of https://github.com/actions/setup-go.git synced 2025-11-07 04:26:55 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
Antoine Toulme
4dfb619742
Merge 65d092b907 into c0137caad7 2025-09-17 07:03:02 +07:00
Antoine Toulme
65d092b907
Merge branch 'actions:main' into restore-only 2025-09-02 16:14:23 -07:00
github-actions[bot]
481f18bdd4 add restore-only 2025-08-07 23:01:02 -07:00
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) {