mirror of
				https://code.forgejo.org/actions/cache.git
				synced 2025-11-04 06:19:11 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									5a3ec84eff
								
							
						
					
					
						commit
						6ec565b197
					
				
					 10 changed files with 1063 additions and 7448 deletions
				
			
		| 
						 | 
				
			
			@ -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'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue