From 7e4f696c1dc851f709a4c8beb4181501c8b27eb3 Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Sat, 23 Sep 2023 20:19:19 +0200 Subject: [PATCH] Add run attempt to WORKFLOW_URL for reporting failed tests (#2034) Task/Issue URL: https://app.asana.com/0/1203301625297703/1205561819790003/f Steps to test this PR: See this Asana task and verify that it contains a valid URL to a specific attempt of a workflow run. --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f1852ded81..3fc6578624 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -103,7 +103,7 @@ jobs: if: always() # always run even if the previous step fails env: ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }} - WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }} run: | # Extract failed tests from the junit report # Only keep failures unique by classname and name (column 1 and 2 of the yq output)