Try to fix build log URL

This commit is contained in:
probonopd authored and GitHub committed 2023-07-15 13:16:01 +02:00
1 parent 7bbdbf4db0
commit 9afb8f6d72
1 file changed
+3 -1
+3 -1
View File
@@ -31,6 +31,7 @@ jobs:
fetch-depth: 0
- name: Auto-cancel builds triggered by branch updates
run: |
env | grep -i branch || true
COMMIT_MSG="${{ github.event.pull_request.head.commit.message }}"
if [[ $COMMIT_MSG == 'Merge branch'* ]]; then
echo "The workflow will not run as the commit message starts with 'Merge branch'."
@@ -115,7 +116,7 @@ jobs:
body: commentBody
});
} else {
const runURL = `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${github.run_id}`;
const runURL = `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${{ github.run_number }}`;
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,
@@ -126,3 +127,4 @@ jobs:
core.setFailed("Unable to post screenshot");
}