File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed
Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -313,8 +313,8 @@ export default eventHandler(async (event) => {
313313 } else {
314314 console . log (
315315 "🔍 [PUBLISH DEBUG] Creating NEW comment on PR #" +
316- prNumber +
317- " (SHOULD BE CURRENT PR, NOT OLD!)" ,
316+ prNumber +
317+ " (SHOULD BE CURRENT PR, NOT OLD!)" ,
318318 ) ;
319319 await installation . request (
320320 "POST /repos/{owner}/{repo}/issues/{issue_number}/comments" ,
Original file line number Diff line number Diff line change @@ -109,10 +109,10 @@ const main = defineCommand({
109109 const paths =
110110 args . _ . length > 0
111111 ? await glob ( args . _ , {
112- expandDirectories : false ,
113- onlyDirectories : true ,
114- absolute : true ,
115- } )
112+ expandDirectories : false ,
113+ onlyDirectories : true ,
114+ absolute : true ,
115+ } )
116116 : [ process . cwd ( ) ] ;
117117
118118 const templates = await glob ( args . template || [ ] , {
@@ -177,6 +177,25 @@ const main = defineCommand({
177177
178178 const key = hash ( metadata ) ;
179179
180+ console . log ( "Publishing with metadata:" , {
181+ owner,
182+ repo,
183+ run : Number ( GITHUB_RUN_ID ) ,
184+ attempt : Number ( GITHUB_RUN_ATTEMPT ) ,
185+ actor : Number ( GITHUB_ACTOR_ID ) ,
186+ key,
187+ apiUrl,
188+ env : {
189+ GITHUB_REPOSITORY ,
190+ GITHUB_RUN_ID ,
191+ GITHUB_RUN_ATTEMPT ,
192+ GITHUB_ACTOR_ID ,
193+ GITHUB_SHA : process . env . GITHUB_SHA ,
194+ GITHUB_REF : process . env . GITHUB_REF ,
195+ GITHUB_REF_NAME : process . env . GITHUB_REF_NAME ,
196+ }
197+ } ) ;
198+
180199 const checkResponse = await fetch ( new URL ( "/check" , apiUrl ) , {
181200 method : "POST" ,
182201 body : JSON . stringify ( {
You can’t perform that action at this time.
0 commit comments