Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"actions/setup-conftest": "1.0.2",
"actions/setup-argo": "1.0.2",
"actions/generate-openapi-clients": "1.0.3",
"actions/push-to-gcs": "0.3.0",
"actions/push-to-gcs": "0.3.1",
"actions/techdocs-rewrite-relative-links": "1.0.3",
"actions/validate-policy-bot-config": "1.1.1",
"actions/trigger-argo-workflow": "1.2.0",
Expand Down
7 changes: 7 additions & 0 deletions actions/push-to-gcs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.3.1](https://github.com/grafana/shared-workflows/compare/push-to-gcs/v0.3.0...push-to-gcs/v0.3.1) (2025-11-20)


### 🔧 Miscellaneous Chores

* **deps:** update actions/checkout action to v5.0.1 ([#1541](https://github.com/grafana/shared-workflows/issues/1541)) ([773f5b1](https://github.com/grafana/shared-workflows/commit/773f5b1eb7b717c5c89a2718c1c4322a45f2ed7f))

## [0.3.0](https://github.com/grafana/shared-workflows/compare/push-to-gcs/v0.2.1...push-to-gcs/v0.3.0) (2025-10-03)


Expand Down
24 changes: 12 additions & 12 deletions actions/push-to-gcs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,77 +34,77 @@ jobs:
id: login-to-gcs

# Upload a single file to the bucket root
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: file.txt
environment: "dev" # Can be dev/prod (defaults to dev)

# Upload a single file and apply a predefined ACL. See `predefinedAcl` for options.
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: file.txt
predefinedAcl: projectPrivate
environment: "dev"

# Here are 3 equivalent statements to upload a single file and its parent directory to the bucket root
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/file.txt
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: .
glob: "folder/file.txt"
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder
glob: "file.txt"

# Here are 2 equivalent statements to upload a single file WITHOUT its parent directory to the bucket root
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/file.txt
parent: false
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder
glob: "file.txt"
parent: false

# Here are 2 equivalent statements to upload a directory with all subdirectories
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: .
glob: "folder/**/*"

# Specify a bucket prefix with `bucket_path`
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
name: upload-yaml-to-some-path
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: file.txt
bucket_path: some-path/

# Upload all files of a type
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/
glob: "*.txt"

# upload all files of a type recursively
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs/v0.3.1
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/
Expand Down