Sync an S3 bucket to a folder and create a cache.
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.
cache_key
: Caching key.
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