Skip to content

Commit

Permalink
chore(main): release push-to-gcs 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 16, 2024
1 parent 79e20cd commit 7825356
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
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.0",
"actions/setup-argo": "1.0.0",
"actions/generate-openapi-clients": "1.0.0",
"actions/push-to-gcs": "0.1.0",
"actions/push-to-gcs": "0.2.0",
"actions/techdocs-rewrite-relative-links": "1.0.0",
"actions/validate-policy-bot-config": "1.0.0",
"actions/trigger-argo-workflow": "1.0.0"
Expand Down
12 changes: 12 additions & 0 deletions actions/push-to-gcs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [0.2.0](https://github.com/grafana/shared-workflows/compare/push-to-gcs-v0.1.0...push-to-gcs-v0.2.0) (2024-12-16)


### 🎉 Features

* **docs:** added EngHub doc links to corresponding actions readmes ([#635](https://github.com/grafana/shared-workflows/issues/635)) ([a7d04c1](https://github.com/grafana/shared-workflows/commit/a7d04c1e98496dbf07f8e44602933af07ba62f9f))


### 🔧 Miscellaneous Chores

* update readme when a new release is available ([#548](https://github.com/grafana/shared-workflows/issues/548)) ([9bf9163](https://github.com/grafana/shared-workflows/commit/9bf9163126c44247bcee6b6b9390eb488f9ead53))

## 0.1.0 (2024-11-28)


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 @@ -32,77 +32,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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/file.txt
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
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.1.0
- uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
with:
bucket: ${{ steps.login-to-gcs.outputs.bucket }}
path: folder/
Expand Down

0 comments on commit 7825356

Please sign in to comment.