Show version in comment

This commit is contained in:
Gunnar Skjold
2026-03-05 14:24:11 +01:00
parent 6d70e62c1a
commit d3c28dcf5d

View File

@@ -67,6 +67,10 @@ jobs:
const prNumber = context.payload.pull_request.number;
const runId = context.runId;
const runUrl = `https://github.com/${owner}/${repo}/actions/runs/${runId}`;
// Get the commit SHA (short version)
const sha = context.payload.pull_request.head.sha;
const shortSha = sha.substring(0, 7);
// Fetch the list of artifacts for this run via the API
const artifactsResp = await github.rest.actions.listWorkflowRunArtifacts({ owner, repo, run_id: runId });
@@ -86,6 +90,8 @@ jobs:
const body = [
'## 🔧 PR Build Artifacts',
'',
`**Version**: \`${shortSha}\``,
'',
'All environments built successfully. Download the zip files:',
'',
...lines,