From 5b0d2f3f7bf158c019106edcb78be97ce6b89e02 Mon Sep 17 00:00:00 2001 From: Uruk Date: Tue, 30 Sep 2025 00:03:40 +0200 Subject: [PATCH] fix(ci): correct GitHub Actions run ID reference Fixes incorrect variable reference in artifact comment generation that was using undefined `runId` instead of the proper `context.runId` from the GitHub Actions context. Also adds descriptive job name for better workflow visibility. --- .github/workflows/artifact-comment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/artifact-comment.yml b/.github/workflows/artifact-comment.yml index 4d7df677..1e63db57 100644 --- a/.github/workflows/artifact-comment.yml +++ b/.github/workflows/artifact-comment.yml @@ -19,6 +19,7 @@ on: jobs: comment-artifacts: if: github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' || (github.event_name == 'workflow_run' && github.event.workflow_run.event == 'pull_request') + name: 📦 Post Build Artifacts runs-on: ubuntu-latest permissions: contents: read @@ -179,7 +180,7 @@ jobs: commentBody += `⏳ **No artifacts available yet** - builds are still in progress or haven't completed successfully.\n\n`; } - commentBody += `*Auto-generated by [GitHub Actions](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${runId})*`; + commentBody += `*Auto-generated by [GitHub Actions](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId})*`; commentBody += `\n`; // Find existing bot comment to update