@@ -95,7 +95,7 @@ export async function run(): Promise<void> {
9595
9696 try {
9797 // Get action inputs
98- const image = getInput ( 'image' ) ; // Image ie gcr.io /...
98+ const image = getInput ( 'image' ) ; // Image ie us-docker.pkg.dev /...
9999 let service = getInput ( 'service' ) ; // Service name
100100 const job = getInput ( 'job' ) ; // Job name
101101 const metadata = getInput ( 'metadata' ) ; // YAML file
@@ -113,6 +113,7 @@ export async function run(): Promise<void> {
113113 const tag = getInput ( 'tag' ) ;
114114 const timeout = getInput ( 'timeout' ) ;
115115 const noTraffic = ( getInput ( 'no_traffic' ) || '' ) . toLowerCase ( ) === 'true' ;
116+ const wait = parseBoolean ( getInput ( 'wait' ) ) ;
116117 const revTraffic = getInput ( 'revision_traffic' ) ;
117118 const tagTraffic = getInput ( 'tag_traffic' ) ;
118119 const labels = parseKVString ( getInput ( 'labels' ) ) ;
@@ -196,6 +197,10 @@ export async function run(): Promise<void> {
196197 setEnvVarsFlags ( deployCmd , envVars , envVarsFile , envVarsUpdateStrategy ) ;
197198 setSecretsFlags ( deployCmd , secrets , secretsUpdateStrategy ) ;
198199
200+ if ( wait ) {
201+ deployCmd . push ( '--wait' ) ;
202+ }
203+
199204 // There is no --update-secrets flag on jobs, but there will be in the
200205 // future. At that point, we can remove this.
201206 const idx = deployCmd . indexOf ( '--update-secrets' ) ;
0 commit comments