google-github-actions / upload-cloud-storage

A GitHub Action for uploading files to a Google Cloud Storage (GCS) bucket.
https://cloud.google.com/storage
Apache License 2.0
206 stars 49 forks source link

Rename a file when copying #340

Open elitongadotti opened 10 months ago

elitongadotti commented 10 months ago

TL;DR

Similar to when we use gsutil cp (below), it would be great to rename the file when the destination is not a bucket.

gsutil cp source/file.txt gs://bucket/new_file_name.txt

Detailed design

Otherwise, the option would be use gsutil anyway to rename it. The improvement is on avoid using a different action (less lines/verbosity)

Additional information

No response