Setup GCS as primary cache option. Fallback to GH if GCS not setup

Basically, do exactly what GH did to save and restore cache with the
exception being that the files are stored on GCS.
This commit is contained in:
Dany Sam 2025-04-10 22:55:13 +05:30
parent 5a3ec84eff
commit 6ec565b197
10 changed files with 1063 additions and 7448 deletions

View file

@ -15,6 +15,13 @@ inputs:
description: 'An optional boolean when enabled, allows windows runners to save caches that can be restored on other platforms'
default: 'false'
required: false
gcs-bucket:
description: 'Google Cloud Storage bucket name to use for caching. When provided, GCS will be used as the cache backend.'
required: false
gcs-path-prefix:
description: 'Optional prefix path within the GCS bucket for cache files'
default: 'github-cache'
required: false
runs:
using: 'node20'
main: '../dist/save-only/index.js'