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

Allow passing gcloudignore path #336

Open shaharkazaz opened 11 months ago

shaharkazaz commented 11 months ago

TL;DR

I have different upload cases where I need different things to be ignored, it's difficult managing it all inside a single gcloudignore file.

I would like the ability to pass the path to the file as an input so I can use different ignore configurations for each one of my cases. My current workaround is not processing it and passing glob/different upload paths which makes the code less readable and unclear because sometimes I'm not processing it and sometimes I don't.

Detailed design

Usage example:

        uses: 'google-github-actions/upload-cloud-storage@v1'
        with:
          path: 'dist/my/app'
          gcloudignore_path: '.gcloudignore.dev'

Additional information

No response