Skip to content

Commit

Permalink
Add run attempt to WORKFLOW_URL for reporting failed tests (#1671)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ayoy authored Sep 23, 2023
1 parent 20bb9c3 commit 2205ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,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)
Expand Down

0 comments on commit 2205ef9

Please sign in to comment.