From d3c28dcf5d8ded795e95558b338a7097465506f1 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Thu, 5 Mar 2026 14:24:11 +0100 Subject: [PATCH] Show version in comment --- .github/workflows/pull-request.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 3883fb70..eac3399b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -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,