From b11fa7435b8c3361e9a1d85fdb68eb4c5a4a5d80 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 14 Jul 2023 12:24:58 -0700 Subject: [PATCH] fix: mergeWorkflowUrl initialization (#24238) --- .github/workflows/create_test_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_test_report.yml b/.github/workflows/create_test_report.yml index 050fd241fd..f582de3e58 100644 --- a/.github/workflows/create_test_report.yml +++ b/.github/workflows/create_test_report.yml @@ -95,6 +95,7 @@ jobs: const reportDir = 'run-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}-${{ github.sha }}'; const reportUrl = `https://mspwblobreport.z1.web.core.windows.net/${reportDir}/index.html`; core.notice('Report url: ' + reportUrl); + const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`; const reportMd = await fs.promises.readFile('report.md', 'utf8'); const { data: response } = await github.rest.issues.createComment({ ...context.repo, @@ -108,7 +109,6 @@ jobs: }); core.info('Posted comment: ' + response.html_url); - const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`; const check = await github.rest.checks.create({ ...context.repo, name: 'Merge report (${{ github.event.workflow_run.name }})',