Skip to content

Latest commit

 

History

History

sync-and-cache-s3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

sync-and-cache-s3

Sync an S3 bucket to a folder and create a cache.

Inputs

  • s3_bucket: - required. Path to an S3 bucket.
  • dest_path: - required. Where to store the data.
  • cache_key_prefix: - optional. A prefix for the cache hash key. Prefix is also used for restoring stale cache if no cache hit occurred for key.

Outputs

  • cache_key: Caching key.

Examples

name: Demo of sync-and-cache-s3

on:
  push:
  pull_request:

jobs:
  demo:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@v3

      - name: Sync and cache an S3 bucket
        uses: viash-io/viash-actions/sync-and-cache-s3
        with:
          s3_bucket: s3:/mybucket/resources
          dest_path: resources