Skip to content

Commit

Permalink
Release: v3.0.3 (#422)
Browse files Browse the repository at this point in the history
## What's Changed
* Remove legacy event_trigger_service input by @sethvargo in
#420

**Full Changelog**:
v3.0.2...6d63d22
  • Loading branch information
google-github-actions-bot authored and sethvargo committed Jul 11, 2024
1 parent 6d63d22 commit 5ee89ca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deploy-cloud-functions",
"version": "3.0.2",
"version": "3.0.3",
"description": "Deploy a Cloud Function",
"main": "dist/index.js",
"scripts": {
Expand Down
14 changes: 13 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
*/

import { EntryData } from 'archiver';
import { debug as logDebug, getInput, info as logInfo, setFailed, setOutput } from '@actions/core';
import {
debug as logDebug,
getInput,
info as logInfo,
isDebug,
setFailed,
setOutput,
} from '@actions/core';
import {
errorMessage,
parseBoolean,
Expand Down Expand Up @@ -162,6 +169,11 @@ async function run() {
delete cf.serviceConfig?.vpcConnectorEgressSettings;
}

if (isDebug()) {
const definition = JSON.stringify(cf, null, 2);
logDebug(`Compiled Cloud Function definition: ${definition}`);
}

// Deploy the Cloud Function
const resp = await client.deployFromLocalSource(cf, sourceDir, {
onZip: (sourceDir: string, zipPath: string) => {
Expand Down

0 comments on commit 5ee89ca

Please sign in to comment.