Skip to content

Commit

Permalink
Fixes: b3cb965 ("Add PR builds bot commenter workflow")
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jan 4, 2022
1 parent b3cb965 commit 1fd13c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ jobs:
if (!artifacts.length) {
return core.error(`No artifacts found`);
}
const sha = ${{github.sha}};
let body = `Docker image: \`docker pull ghcr.io/${owner}/${repo}:devel-${sha.substr(0,7)}\``;
body += `\n\nDownload the artifacts for this pull request:\n`;
const sha = ${{github.event.workflow_run.head_sha}};
let body = `Download the artifacts for this pull request:\n`;
for (const art of artifacts) {
body += `\n* [${art.name}.zip](https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip)`;
}
body += `\n\nOr use the following Docker image \`ghcr.io/${owner}/${repo}:devel-${sha.substr(0,7)}\``;
core.info("Review thread message body:", body);
Expand Down

0 comments on commit 1fd13c3

Please sign in to comment.