From 46282227801f7c110cf6d578d2e1edcfad56d45e Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 21 Mar 2023 12:20:27 +0100 Subject: [PATCH] ci: always use tee -a when writing output Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/actions/shortname/action.yaml | 2 +- .github/workflows/build-os-image.yml | 6 +++--- .github/workflows/e2e-test-weekly.yml | 4 ++-- .github/workflows/release.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/shortname/action.yaml b/.github/actions/shortname/action.yaml index 9a21d9666..daa0ef289 100644 --- a/.github/actions/shortname/action.yaml +++ b/.github/actions/shortname/action.yaml @@ -42,4 +42,4 @@ runs: echo "ref=$ref" echo "stream=$stream" echo "version=$version" - } | tee "$GITHUB_OUTPUT" "$GITHUB_ENV" + } | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV" diff --git a/.github/workflows/build-os-image.yml b/.github/workflows/build-os-image.yml index 680e32844..1d6ce5def 100644 --- a/.github/workflows/build-os-image.yml +++ b/.github/workflows/build-os-image.yml @@ -121,7 +121,7 @@ jobs: echo "disk-mapper-sha256=$(sha256sum disk-mapper | head -c 64)" echo "upgrade-agent-sha256=$(sha256sum upgrade-agent | head -c 64)" echo "measurement-reader-sha256=$(sha256sum measurement-reader | head -c 64)" - } | tee "$GITHUB_OUTPUT" + } | tee -a "$GITHUB_OUTPUT" build-settings: name: "Determine build settings" @@ -208,7 +208,7 @@ jobs: echo "imageName=ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}" echo "imageApiBasePath=constellation/v1/ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}/image" echo "cliApiBasePath=constellation/v1/ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}/cli" - } | tee "$GITHUB_OUTPUT" + } | tee -a "$GITHUB_OUTPUT" if [[ "${REF}" = "-" ]] && [[ "${STREAM}" = "stable" ]]; then echo "imageNameShort=${IMAGE_VERSION}" >> "$GITHUB_OUTPUT" @@ -329,7 +329,7 @@ jobs: echo "image-vmlinuz-${{ matrix.csp }}-sha256=$(sha256sum image.vmlinuz | head -c 64)" echo "image-raw-changelog-${{ matrix.csp }}-sha256=$(sha256sum image.raw.changelog | head -c 64)" echo "image-raw-manifest-${{ matrix.csp }}-sha256=$(sha256sum image.raw.manifest | head -c 64)" - } | tee "$GITHUB_OUTPUT" + } | tee -a "$GITHUB_OUTPUT" - name: Upload raw OS image as artifact if: always() diff --git a/.github/workflows/e2e-test-weekly.yml b/.github/workflows/e2e-test-weekly.yml index 0c4dca459..9a058a8e0 100644 --- a/.github/workflows/e2e-test-weekly.yml +++ b/.github/workflows/e2e-test-weekly.yml @@ -42,8 +42,8 @@ jobs: env: REFSTREAM: ${{ matrix.refStream }} run: | - echo "ref=${REFSTREAM%-*}" | tee "$GITHUB_OUTPUT" - echo "stream=${REFSTREAM#*-}" | tee "$GITHUB_OUTPUT" + echo "ref=${REFSTREAM%-*}" | tee -a "$GITHUB_OUTPUT" + echo "stream=${REFSTREAM#*-}" | tee -a "$GITHUB_OUTPUT" - name: Find latest image id: find-latest-image diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9f77aa0d..eaf4245e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: echo "MAJOR_MINOR=${PART_MAJOR}.${PART_MINOR}" echo "MAJOR_MINOR_PATCH=${PART_MAJOR}.${PART_MINOR}.${PART_PATCH}" echo "RELEASE_BRANCH=release/v${PART_MAJOR}.${PART_MINOR}" - } | tee "$GITHUB_OUTPUT" + } | tee -a "$GITHUB_OUTPUT" docs: name: Create docs release