Skip to content

Commit 10325a2

Browse files
committed
fix in progress workflow report missing latest commit statuses
1 parent e392cdc commit 10325a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/praktika/runner.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,6 @@ def _post_run(
510510
HtmlRunnerHooks.post_run(workflow, job, info_errors)
511511
workflow_result = Result.from_fs(workflow.name)
512512

513-
# Altinity workflow report
514-
cmd = f"PR_NUMBER={env.PR_NUMBER} ./.github/actions/create_workflow_report/workflow_report_hook.sh"
515-
workflow_report_url = Shell.get_output(cmd).splitlines()[-1]
516-
print(f"::notice ::Workflow report: {workflow_report_url}")
517-
518513
if job.name == Settings.FINISH_WORKFLOW_JOB_NAME and ci_db:
519514
# run after HtmlRunnerHooks.post_run(), when Workflow Result has up-to-date storage_usage data
520515
workflow_storage_usage = StorageUsage.from_dict(
@@ -567,6 +562,11 @@ def _post_run(
567562
print(f"ERROR: Failed to post commit status for the job")
568563

569564
if workflow.enable_report:
565+
# Altinity workflow report
566+
cmd = f"PR_NUMBER={env.PR_NUMBER} ./.github/actions/create_workflow_report/workflow_report_hook.sh"
567+
workflow_report_url = Shell.get_output(cmd).splitlines()[-1]
568+
print(f"::notice ::Workflow report: {workflow_report_url}")
569+
570570
# to make it visible in GH Actions annotations
571571
print(f"::notice ::Job report: {report_url}")
572572

0 commit comments

Comments
 (0)