Skip to content

Commit

Permalink
Add workflow summary to Enos tests (hashicorp#19858)
Browse files Browse the repository at this point in the history
* Add workflow summary to Enos tests

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

* Fix GHA lint errors for setup outputs

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

---------

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
  • Loading branch information
Jaymala committed Mar 31, 2023
1 parent b3d333b commit 550277d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/enos-release-testing-oss.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: enos-release-testing-oss
name: enos-release-testing-oss-${{ github.event.client_payload.payload.sha }}

on:
repository_dispatch:
Expand Down Expand Up @@ -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"

0 comments on commit 550277d

Please sign in to comment.