Skip to content

Commit a07b4f7

Browse files
authored
Refactor CI for forked repositories - Enhance (#123)
1 parent 4156918 commit a07b4f7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function run() {
2424
throw new Error('Unable to guess the commit SHA !');
2525
}
2626
const currentJob = await ghaHelpers.fetchCurrentJob(octokit);
27-
const startedAt = (new Date()).toISOString();
27+
const nowDate = (new Date()).toISOString();
2828
const summaryRedirectMrkLink = formatMarkdownUrl(
2929
'**' + currentWorkflowContext.workflowName + (!currentJob ? '' : '** → **' + currentJob.name )+ '** ' + (!currentJob ? 'workflow' : 'job' ),
3030
!currentJob ? currentWorkflowContext.workflowRunUrl : ghaHelpers.buildWorkflowJobRunUrl(currentJob, triggeringWorkflowContext.prNumber)
@@ -33,9 +33,9 @@ async function run() {
3333
return {
3434
name: !!checkName ? checkName : (currentJob?.name ?? currentWorkflowContext.workflowName + ' Check run'),
3535
head_sha: triggeringWorkflowContext.commitSha,
36-
started_at: startedAt,
36+
started_at: !currentJob ? nowDate : currentJob.started_at,
3737
conclusion: isSuccessfulJobAsOfNow ? undefined : jobStatus,
38-
completed_at: isSuccessfulJobAsOfNow ? undefined : startedAt,
38+
completed_at: isSuccessfulJobAsOfNow ? undefined : nowDate,
3939
status: isSuccessfulJobAsOfNow ? 'in_progress' : 'completed',
4040
output: {
4141
title: '🔔 ' + currentWorkflowContext.workflowName,

.github/actions/reports-group/fetch-workflow-metadata-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/fetch-workflow-metadata-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.

0 commit comments

Comments
 (0)