Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .github/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
paths:
'**/*.yml':
ignore:
# https://github.com/rhysd/actionlint/issues/559
- 'invalid runner name "node24"'
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: 'npm build'
run: 'npm ci && npm run build'

- uses: 'google-github-actions/auth@v2' # ratchet:exclude
- uses: 'google-github-actions/auth@v3' # ratchet:exclude
with:
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
# Only authenticate if this is a full CI run.
- if: |-
${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
uses: 'google-github-actions/auth@v2' # ratchet:exclude
uses: 'google-github-actions/auth@v3' # ratchet:exclude
with:
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
Expand Down
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ support](https://cloud.google.com/support).**
blobs to the specified bucket. See the [Authorization](#authorization)
section below for more information.

- This action runs using Node 16. If you are using self-hosted GitHub Actions
runners, you must use runner version [2.285.0](https://github.com/actions/virtual-environments)
or newer.
- This action runs using Node 24. If you are using self-hosted GitHub Actions
runners, you must use a [runner
version](https://github.com/actions/virtual-environments) that supports this
version or later.

## Usage

Expand All @@ -43,13 +44,13 @@ jobs:
uses: 'actions/checkout@v4'

- id: 'auth'
uses: 'google-github-actions/auth@v2'
uses: 'google-github-actions/auth@v3'
with:
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
service_account: '[email protected]'

- id: 'upload-file'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: '/path/to/file'
destination: 'bucket-name'
Expand Down Expand Up @@ -77,13 +78,13 @@ jobs:
uses: 'actions/checkout@v4'

- id: 'auth'
uses: 'google-github-actions/auth@v2'
uses: 'google-github-actions/auth@v3'
with:
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
service_account: '[email protected]'

- id: 'upload-folder'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: '/path/to/folder'
destination: 'bucket-name'
Expand Down Expand Up @@ -113,7 +114,7 @@ With default configuration

```yaml
- id: 'upload-files'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'myfolder'
destination: 'bucket-name'
Expand All @@ -125,7 +126,7 @@ Optionally, you can also specify a prefix in destination.

```yaml
- id: 'upload-files'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'myfolder'
destination: 'bucket-name/myprefix'
Expand All @@ -140,7 +141,7 @@ Setting `parent` to false will omit `path` when uploading to bucket.

```yaml
- id: 'upload-files'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'myfolder'
destination: 'bucket-name'
Expand All @@ -155,7 +156,7 @@ Optionally, you can also specify a prefix in destination.

```yaml
- id: 'upload-files'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'myfolder'
destination: 'bucket-name/myprefix'
Expand All @@ -170,7 +171,7 @@ You can specify a glob pattern like

```yaml
- id: 'upload-files'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
with:
path: 'myfolder'
destination: 'bucket-name'
Expand Down Expand Up @@ -348,12 +349,12 @@ jobs:

steps:
- id: 'auth'
uses: 'google-github-actions/auth@v2'
uses: 'google-github-actions/auth@v3'
with:
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
service_account: '[email protected]'

- uses: 'google-github-actions/upload-cloud-storage@v2'
- uses: 'google-github-actions/upload-cloud-storage@v3'
```

### Via Application Default Credentials
Expand All @@ -368,7 +369,7 @@ jobs:
job_id:
steps:
- id: 'upload-file'
uses: 'google-github-actions/upload-cloud-storage@v2'
uses: 'google-github-actions/upload-cloud-storage@v3'
```

The action will automatically detect and use the Application Default
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ branding:


runs:
using: 'node20'
using: 'node24'
main: 'dist/main/index.js'
21 changes: 0 additions & 21 deletions bin/runTests.sh

This file was deleted.

6 changes: 3 additions & 3 deletions dist/main/index.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"docs": "./node_modules/.bin/actions-gen-readme",
"lint": "eslint .",
"format": "eslint . --fix",
"test": "bash ./bin/runTests.sh"
"test": "node --require ts-node/register --test-reporter spec --test tests/**/*.test.ts"
},
"engines": {
"node": ">= 20.x",
"node": ">= 24.x",
"npm": ">= 11.x"
},
"repository": {
Expand All @@ -30,7 +30,7 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@google-cloud/storage": "^7.17.0",
"@google-github-actions/actions-utils": "^0.8.10",
"@google-github-actions/actions-utils": "^1.0.1",
"fast-glob": "^3.3.3",
"ignore": "^7.0.5"
},
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const NO_FILES_WARNING =
`\n` +
` - uses: 'actions/checkout@v4'\n` +
` # ...\n` +
` - uses: 'google-github-actions/upload-cloud-storage@v2'\n` +
` - uses: 'google-github-actions/upload-cloud-storage@v3'\n` +
`\n` +
`Check that the "path" points to a valid destination on disk, relative to ` +
`the GitHub Workspace. Make sure your files are not being ignored via a ` +
Expand Down
Loading