From dec02e9270d1577b07987a54e6cec00c3b0e5f09 Mon Sep 17 00:00:00 2001 From: Tim Etchells Date: Sun, 21 Feb 2021 16:44:45 -0500 Subject: [PATCH] Simplify 'echo outputs' workflow steps Signed-off-by: Tim Etchells --- .github/workflows/multiple-build.yaml | 12 ++++-------- .github/workflows/verify-push.yaml | 3 +-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/multiple-build.yaml b/.github/workflows/multiple-build.yaml index 8fb1e86..15f12e3 100644 --- a/.github/workflows/multiple-build.yaml +++ b/.github/workflows/multiple-build.yaml @@ -34,8 +34,7 @@ jobs: - name: Echo outputs run: | - echo "Digest: ${{ steps.push.outputs.digest }}" - echo "Registry Paths: ${{ steps.push.outputs.registry-paths }}" + echo "${{ toJSON(steps.push.outputs) }}" build-only-docker: name: Build and push image built only on Docker @@ -63,8 +62,7 @@ jobs: - name: Echo outputs run: | - echo "Digest: ${{ steps.push.outputs.digest }}" - echo "Registry Paths: ${{ steps.push.outputs.registry-paths }}" + echo "${{ toJSON(steps.push.outputs) }}" build-podman-latest: name: Build and push image built latest on Podman @@ -99,8 +97,7 @@ jobs: - name: Echo outputs run: | - echo "Digest: ${{ steps.push.outputs.digest }}" - echo "Registry Paths: ${{ steps.push.outputs.registry-paths }}" + echo "${{ toJSON(steps.push.outputs) }}" build-docker-latest: name: Build and push image built latest on Docker @@ -135,5 +132,4 @@ jobs: - name: Echo outputs run: | - echo "Digest: ${{ steps.push.outputs.digest }}" - echo "Registry Paths: ${{ steps.push.outputs.registry-paths }}" + echo "${{ toJSON(steps.push.outputs) }}" diff --git a/.github/workflows/verify-push.yaml b/.github/workflows/verify-push.yaml index 4054caf..09bd58e 100644 --- a/.github/workflows/verify-push.yaml +++ b/.github/workflows/verify-push.yaml @@ -100,5 +100,4 @@ jobs: - name: Echo outputs run: | - echo "Digest: ${{ steps.push.outputs.digest }}" - echo "Registry Paths: ${{ steps.push.outputs.registry-paths }}" + echo "${{ toJSON(steps.push.outputs) }}"