Add cache/store/action.yaml
This commit is contained in:
		
							
								
								
									
										23
									
								
								cache/store/action.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								cache/store/action.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
name: Compress Files
 | 
			
		||||
desciption: Compress files into a gziped archive
 | 
			
		||||
 | 
			
		||||
inputs:
 | 
			
		||||
  key:
 | 
			
		||||
    required: true
 | 
			
		||||
    type: string
 | 
			
		||||
    default: default
 | 
			
		||||
  pattern:
 | 
			
		||||
    required: true
 | 
			
		||||
    type: string
 | 
			
		||||
 | 
			
		||||
runs:
 | 
			
		||||
  using: composite
 | 
			
		||||
  container:
 | 
			
		||||
    image: alpine
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /mnt/swarm/gitea/runner/cache:/cache
 | 
			
		||||
  steps:
 | 
			
		||||
    - run: |
 | 
			
		||||
        tar -czf "${{ inputs.out }}" ${{ inputs.pattern }}
 | 
			
		||||
        mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}"
 | 
			
		||||
        mv "${{ inputs.out }}" "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/"
 | 
			
		||||
		Reference in New Issue
	
	Block a user