Skip to content

Commit a2dae75

Browse files
authored
Refactor CI for forked repositories - Fix (#114)
1 parent 9fe059f commit a2dae75

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/actions/reports-group/attach-check-run-to-triggering-workflow-action/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/reports-group/attach-check-run-to-triggering-workflow-action/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/reports-group/attach-check-run-to-triggering-workflow-action/src/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ async function run() {
132132
//const originalWorkflowName = guessTriggeringWorkflowName();
133133
const currentWorkflowName = github.context.workflow;
134134
const outputTitle = '🔔 ' + currentWorkflowName;
135-
const currentWorkflowUrl = github.context.serverUrl + '/' + GITHUB_REPOSITORY + '/actions/runs/' + github.context.runId.toString() + (undefined !== prNumber ? '?pr=' + prNumber : '');
135+
const prLink = (undefined !== prNumber ? '?pr=' + prNumber : '');
136+
const currentWorkflowUrl = github.context.serverUrl + '/' + GITHUB_REPOSITORY + '/actions/runs/' + github.context.runId.toString() + prLink;
136137
const outputSummary = '🪢 Check added by '
137-
+ (currentJob ? '<a href="' + currentJob.html_url + '" target="blank">**' + currentJob.name + '**</a>' : '')
138+
+ (currentJob ? '<a href="' + currentJob.html_url + prLink + '" target="blank">**' + currentJob.name + '**</a>' : '')
138139
+ (currentJob ? ' (' : '') + '<a href="' + currentWorkflowUrl + '" target="blank">**' + currentWorkflowName + '** workflow</a>' + (currentJob ? ')' : '')
139140
;
140141

0 commit comments

Comments
 (0)