From 550277dd9aa1abc1da57c83c6090ed13b292f442 Mon Sep 17 00:00:00 2001 From: Jaymala Date: Fri, 31 Mar 2023 09:21:08 -0400 Subject: [PATCH] Add workflow summary to Enos tests (#19858) * Add workflow summary to Enos tests Signed-off-by: Jaymala Sinha * Fix GHA lint errors for setup outputs Signed-off-by: Jaymala Sinha --------- Signed-off-by: Jaymala Sinha --- .github/workflows/enos-release-testing-oss.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/enos-release-testing-oss.yml b/.github/workflows/enos-release-testing-oss.yml index f62089d994f1..ee42dd046c74 100644 --- a/.github/workflows/enos-release-testing-oss.yml +++ b/.github/workflows/enos-release-testing-oss.yml @@ -1,4 +1,4 @@ -name: enos-release-testing-oss +name: enos-release-testing-oss-${{ github.event.client_payload.payload.sha }} on: repository_dispatch: @@ -59,3 +59,18 @@ jobs: steps: - name: Persist metadata uses: hashicorp/actions-persist-metadata@v1 + + # Get the workflow summary similar to CRT workflows + release-artifact-info: + runs-on: linux + if: ${{ startsWith(github.event.action, 'enos-release-testing-oss') }} + continue-on-error: true + steps: + - name: Release Artifact Info + run: | + # shellcheck disable=SC2129 + echo "__Product:__ ${{ github.event.client_payload.payload.product }}" >> "$GITHUB_STEP_SUMMARY" + echo "__Version:__ ${{ github.event.client_payload.payload.version }}" >> "$GITHUB_STEP_SUMMARY" + echo "__Commit:__ ${{ github.event.client_payload.payload.sha }}" >> "$GITHUB_STEP_SUMMARY" + echo "" >> "$GITHUB_STEP_SUMMARY" + echo "[Build Workflow](https://github.com/${{github.event.client_payload.payload.org}}/${{github.event.client_payload.payload.repo}}/actions/runs/${{github.event.client_payload.payload.buildworkflowid}})" >> "$GITHUB_STEP_SUMMARY"