From ed96236a0144421e378134a90c9f2b26f5127547 Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Tue, 16 Sep 2025 13:09:51 +0100 Subject: [PATCH] workflows: add comment with action link in PR When running tests on pull request it's not easy to identify the proper workflow. This patch adds a link to the workflow to the PR comment. This way it will be easy to find the proper workflow should the tests fail. Signed-off-by: Milosz Wasilewski --- .github/workflows/test-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index d76a8219c..66f8c1ccc 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -75,7 +75,8 @@ jobs: - name: Prepare PR comment id: pr_comment_prep run: | - echo "## Test jobs for commit ${{ github.event.workflow_run.head_sha }}" > pr-comment.txt + echo "## Test run [workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" > pr-comment.txt + echo "## Test jobs for commit ${{ github.event.workflow_run.head_sha }}" >> pr-comment.txt for json_file in $(find ${{ github.workspace }} -name "test-job-*.json") do DEVICE_TYPE=$(cat "$json_file" | jq -r ".requested_device_type")