upload-cloud-storage icon indicating copy to clipboard operation
upload-cloud-storage copied to clipboard

Two-way transfer

Open Ameausoone opened this issue 5 years ago • 1 comments

TL;DR

This is an action to upload files to cloud storage => couldn't it be a two-way action ?

Design

Action YAML It could be a generic source => destination action.

steps:
  - id: upload-files
    uses: google-github-actions/transfer-cloud-storage@main
    with:
      source: /path/to/folder
      destination: bucket-name
  - id: download-files
    uses: google-github-actions/transfer-cloud-storage@main
    with:
      source: gs://bucket-name/dir/file.txt
      destination: file.txt

Resources N/A

Additional information N/A

Ameausoone avatar Nov 12 '20 15:11 Ameausoone

Hi @Ameausoone Thanks for the feedback. It makes sense to me, I will investigate the feasibility for this.

bharathkkb avatar Nov 14 '20 01:11 bharathkkb

Hi folks - this GitHub Action is optimized for one way syncing from GitHub Actions to Google Cloud Storage. For syncing, we recommend using google-github-actions/setup-gcloud and using the gcloud storage or gsutil components to rsync. This gives you full control over which target is the source of truth, deletion criteria, and more.

sethvargo avatar Dec 17 '22 23:12 sethvargo