From d81836dcbafa7a4de73400faf96bf580b17432ee Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 15 Jul 2023 12:56:27 +0200 Subject: [PATCH] Fix URL --- .github/workflows/test.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6db628f7..5f6c0249 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,11 +7,6 @@ on: paths: - 'data/**' pull_request: - types: - # NOT on "synchonize" - - opened - - edited - - reopened paths: - 'data/**' @@ -111,7 +106,9 @@ jobs: body: commentBody }); } else { - const runURL = `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/jobs/${process.env.GITHUB_JOB}`; + const workflowRunID = process.env.GITHUB_RUN_ID; + const jobID = process.env.GITHUB_JOB; + const runURL = `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${workflowRunID}/jobs/${jobID}`; const commentBody = `The test was unable to make a screenshot. Most likely the test did not succeed. Please check the [logs of the test run](${runURL}).`; await github.issues.createComment({ owner: context.repo.owner, @@ -121,3 +118,4 @@ jobs: }); core.setFailed("Unable to post screenshot"); } +