@@ -63,6 +63,7 @@ export async function run(): Promise<void> {
6363 const processGcloudIgnore = core . getBooleanInput ( 'process_gcloudignore' ) ;
6464 const metadata = headersInput === '' ? { } : parseHeadersInput ( headersInput ) ;
6565 const credentials = core . getInput ( 'credentials' ) ;
66+ const projectID = core . getInput ( 'project_id' ) ;
6667
6768 // Add warning if using credentials.
6869 if ( credentials ) {
@@ -88,7 +89,7 @@ export async function run(): Promise<void> {
8889 // - Format all files to be posix relative to input.path
8990 // - Filter out items that match
9091 if ( processGcloudIgnore ) {
91- core . debug ( `processing gcloudignore` ) ;
92+ core . debug ( `Processing gcloudignore` ) ;
9293
9394 const ignores = ignore ( ) ;
9495
@@ -98,8 +99,8 @@ export async function run(): Promise<void> {
9899 const ignoreList = await parseGcloudIgnore ( gcloudIgnorePath ) ;
99100
100101 if ( ignoreList . length ) {
101- core . debug ( `using .gcloudignore at: ${ gcloudIgnorePath } ` ) ;
102- core . debug ( `parsed ignore list: ${ JSON . stringify ( ignoreList ) } ` ) ;
102+ core . debug ( `Using .gcloudignore at: ${ gcloudIgnorePath } ` ) ;
103+ core . debug ( `Parsed ignore list: ${ JSON . stringify ( ignoreList ) } ` ) ;
103104
104105 ignores . add ( ignoreList ) ;
105106 }
@@ -108,27 +109,30 @@ export async function run(): Promise<void> {
108109 const name = files [ i ] ;
109110 try {
110111 if ( ignores . ignores ( name ) ) {
111- core . debug ( `ignoring ${ name } because of ignore file` ) ;
112+ core . debug ( `Ignoring ${ name } because of ignore file` ) ;
112113 files . splice ( i , 1 ) ;
113114 i -- ;
114115 }
115116 } catch ( err ) {
116117 const msg = errorMessage ( err ) ;
117- core . error ( `failed to process ignore for ${ name } , skipping: ${ msg } ` ) ;
118+ core . error ( `Failed to process ignore for ${ name } , skipping: ${ msg } ` ) ;
118119 }
119120 }
120121 }
121122 }
122123
123- core . debug ( `uploading ${ files . length } files: ${ JSON . stringify ( files ) } ` ) ;
124+ core . debug ( `Uploading ${ files . length } files: ${ JSON . stringify ( files ) } ` ) ;
124125
125126 // Emit a helpful warning in case people specify the wrong directory.
126127 if ( files . length === 0 ) {
127128 core . warning ( NO_FILES_WARNING ) ;
128129 }
129130
130131 // Create the client and upload files.
131- const client = new Client ( { credentials : credentials } ) ;
132+ const client = new Client ( {
133+ credentials : credentials ,
134+ projectID : projectID ,
135+ } ) ;
132136 const uploadResponses = await client . upload ( {
133137 destination : destination ,
134138 root : absoluteRoot ,
0 commit comments