From a3634fe7663c7b15f46c686242cb57c46c19c595 Mon Sep 17 00:00:00 2001 From: Robert Gildein Date: Tue, 9 Apr 2024 14:36:26 +0200 Subject: [PATCH] add workflow url to message --- .github/workflows/weekly_tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/weekly_tests.yaml b/.github/workflows/weekly_tests.yaml index 6143eb5..59b899e 100644 --- a/.github/workflows/weekly_tests.yaml +++ b/.github/workflows/weekly_tests.yaml @@ -104,11 +104,13 @@ jobs: - name: Collect failed tests id: collect-failed-tests + env: + WORKFLOW_URL: ${{ steps.dispatched-test.outputs.workflow_url }} if: ${{ failure() }} run: | failed_tests="" if [ "${{ steps.dispatched-tests.outcome }}" != "success" ]; then - failed_tests+="[${{ matrix.repo }}](https://github.com/canonical/${{ matrix.repo }}/actions), " + failed_tests+="[${{ matrix.repo }}]($WORKFLOW_URL), " fi # Set the output variable to pass the failed tests to the next job echo "failed_tests=$failed_tests" >> "$GITHUB_OUTPUT"