diff --git a/action.yml b/action.yml index 42414db..cc1160e 100644 --- a/action.yml +++ b/action.yml @@ -308,6 +308,9 @@ outputs: url: description: |- The URL of the Cloud Run service. + revision: + description: |- + The name of the latest created revision from the deployment. branding: icon: 'chevrons-right' diff --git a/src/main.ts b/src/main.ts index a18900c..c24d43d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -67,6 +67,7 @@ const isDebug = */ export interface DeployCloudRunOutputs { url?: string | null | undefined; // Type required to match run_v1.Schema$Service.status.url + revision?: string | null | undefined; // Latest created revision name from the deployment } /** diff --git a/src/output-parser.ts b/src/output-parser.ts index 4a5d369..f876412 100644 --- a/src/output-parser.ts +++ b/src/output-parser.ts @@ -104,6 +104,7 @@ export function parseDeployResponse( // Set outputs const outputs: DeployCloudRunOutputs = { url: outputJSON?.status?.url, + revision: outputJSON?.status?.latestCreatedRevisionName, }; // Maintain current logic to use tag url if provided