upload-cloud-storage
upload-cloud-storage copied to clipboard
Two-way transfer
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
Hi @Ameausoone Thanks for the feedback. It makes sense to me, I will investigate the feasibility for this.
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.