@@ -31,6 +31,7 @@ async function main() {
3131
3232 const { owner, repo } = context . repo ;
3333 const ref = context . sha ;
34+ const githubServerUrl = process . env . GITHUB_SERVER_URL || "https://github.com" ;
3435
3536 // Helper function to get the last commit for a file
3637 async function getLastCommitForFile ( path ) {
@@ -151,10 +152,10 @@ async function main() {
151152 . addRaw ( "**Files:**\n" )
152153 . addRaw ( `- Source: \`${ workflowMdPath } \`\n` )
153154 . addRaw ( ` - Last commit: ${ workflowTimestamp } \n` )
154- . addRaw ( ` - Commit SHA: [\`${ workflowCommit . sha . substring ( 0 , 7 ) } \`](https://github.com /${ owner } /${ repo } /commit/${ workflowCommit . sha } )\n` )
155+ . addRaw ( ` - Commit SHA: [\`${ workflowCommit . sha . substring ( 0 , 7 ) } \`](${ githubServerUrl } /${ owner } /${ repo } /commit/${ workflowCommit . sha } )\n` )
155156 . addRaw ( `- Lock: \`${ lockFilePath } \`\n` )
156157 . addRaw ( ` - Last commit: ${ lockTimestamp } \n` )
157- . addRaw ( ` - Commit SHA: [\`${ lockCommit . sha . substring ( 0 , 7 ) } \`](https://github.com /${ owner } /${ repo } /commit/${ lockCommit . sha } )\n\n` )
158+ . addRaw ( ` - Commit SHA: [\`${ lockCommit . sha . substring ( 0 , 7 ) } \`](${ githubServerUrl } /${ owner } /${ repo } /commit/${ lockCommit . sha } )\n\n` )
158159 . addRaw ( "**Action Required:** Run `gh aw compile` to regenerate the lock file.\n\n" ) ;
159160
160161 await summary . write ( ) ;
@@ -179,11 +180,11 @@ async function main() {
179180 . addRaw ( "**Files:**\n" )
180181 . addRaw ( `- Source: \`${ workflowMdPath } \`\n` )
181182 . addRaw ( ` - Last commit: ${ workflowTimestamp } \n` )
182- . addRaw ( ` - Commit SHA: [\`${ workflowCommit . sha . substring ( 0 , 7 ) } \`](https://github.com /${ owner } /${ repo } /commit/${ workflowCommit . sha } )\n` )
183+ . addRaw ( ` - Commit SHA: [\`${ workflowCommit . sha . substring ( 0 , 7 ) } \`](${ githubServerUrl } /${ owner } /${ repo } /commit/${ workflowCommit . sha } )\n` )
183184 . addRaw ( ` - Frontmatter hash: \`${ hashComparison . recomputedHash . substring ( 0 , 12 ) } ...\`\n` )
184185 . addRaw ( `- Lock: \`${ lockFilePath } \`\n` )
185186 . addRaw ( ` - Last commit: ${ lockTimestamp } \n` )
186- . addRaw ( ` - Commit SHA: [\`${ lockCommit . sha . substring ( 0 , 7 ) } \`](https://github.com /${ owner } /${ repo } /commit/${ lockCommit . sha } )\n` )
187+ . addRaw ( ` - Commit SHA: [\`${ lockCommit . sha . substring ( 0 , 7 ) } \`](${ githubServerUrl } /${ owner } /${ repo } /commit/${ lockCommit . sha } )\n` )
187188 . addRaw ( ` - Stored hash: \`${ hashComparison . storedHash . substring ( 0 , 12 ) } ...\`\n\n` )
188189 . addRaw ( "**Action Required:** Run `gh aw compile` to regenerate the lock file.\n\n" ) ;
189190
@@ -223,11 +224,11 @@ async function main() {
223224 . addRaw ( "**Files:**\n" )
224225 . addRaw ( `- Source: \`${ workflowMdPath } \`\n` )
225226 . addRaw ( ` - Last commit: ${ workflowTimestamp } \n` )
226- . addRaw ( ` - Commit SHA: [\`${ workflowCommit . sha . substring ( 0 , 7 ) } \`](https://github.com /${ owner } /${ repo } /commit/${ workflowCommit . sha } )\n` )
227+ . addRaw ( ` - Commit SHA: [\`${ workflowCommit . sha . substring ( 0 , 7 ) } \`](${ githubServerUrl } /${ owner } /${ repo } /commit/${ workflowCommit . sha } )\n` )
227228 . addRaw ( ` - Frontmatter hash: \`${ hashComparison . recomputedHash . substring ( 0 , 12 ) } ...\`\n` )
228229 . addRaw ( `- Lock: \`${ lockFilePath } \`\n` )
229230 . addRaw ( ` - Last commit: ${ lockTimestamp } \n` )
230- . addRaw ( ` - Commit SHA: [\`${ lockCommit . sha . substring ( 0 , 7 ) } \`](https://github.com /${ owner } /${ repo } /commit/${ lockCommit . sha } )\n` )
231+ . addRaw ( ` - Commit SHA: [\`${ lockCommit . sha . substring ( 0 , 7 ) } \`](${ githubServerUrl } /${ owner } /${ repo } /commit/${ lockCommit . sha } )\n` )
231232 . addRaw ( ` - Stored hash: \`${ hashComparison . storedHash . substring ( 0 , 12 ) } ...\`\n\n` )
232233 . addRaw ( "**Action Required:** Run `gh aw compile` to regenerate the lock file.\n\n" ) ;
233234
0 commit comments