ci: always use tee -a when writing output

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-03-21 12:20:27 +01:00
parent 332c78da60
commit 4628222780
4 changed files with 7 additions and 7 deletions

View File

@ -42,4 +42,4 @@ runs:
echo "ref=$ref" echo "ref=$ref"
echo "stream=$stream" echo "stream=$stream"
echo "version=$version" echo "version=$version"
} | tee "$GITHUB_OUTPUT" "$GITHUB_ENV" } | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"

View File

@ -121,7 +121,7 @@ jobs:
echo "disk-mapper-sha256=$(sha256sum disk-mapper | head -c 64)" echo "disk-mapper-sha256=$(sha256sum disk-mapper | head -c 64)"
echo "upgrade-agent-sha256=$(sha256sum upgrade-agent | head -c 64)" echo "upgrade-agent-sha256=$(sha256sum upgrade-agent | head -c 64)"
echo "measurement-reader-sha256=$(sha256sum measurement-reader | head -c 64)" echo "measurement-reader-sha256=$(sha256sum measurement-reader | head -c 64)"
} | tee "$GITHUB_OUTPUT" } | tee -a "$GITHUB_OUTPUT"
build-settings: build-settings:
name: "Determine build settings" name: "Determine build settings"
@ -208,7 +208,7 @@ jobs:
echo "imageName=ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}" echo "imageName=ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}"
echo "imageApiBasePath=constellation/v1/ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}/image" echo "imageApiBasePath=constellation/v1/ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}/image"
echo "cliApiBasePath=constellation/v1/ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}/cli" echo "cliApiBasePath=constellation/v1/ref/${REF}/stream/${STREAM}/${IMAGE_VERSION}/cli"
} | tee "$GITHUB_OUTPUT" } | tee -a "$GITHUB_OUTPUT"
if [[ "${REF}" = "-" ]] && [[ "${STREAM}" = "stable" ]]; then if [[ "${REF}" = "-" ]] && [[ "${STREAM}" = "stable" ]]; then
echo "imageNameShort=${IMAGE_VERSION}" >> "$GITHUB_OUTPUT" 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-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-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)" 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 - name: Upload raw OS image as artifact
if: always() if: always()

View File

@ -42,8 +42,8 @@ jobs:
env: env:
REFSTREAM: ${{ matrix.refStream }} REFSTREAM: ${{ matrix.refStream }}
run: | run: |
echo "ref=${REFSTREAM%-*}" | tee "$GITHUB_OUTPUT" echo "ref=${REFSTREAM%-*}" | tee -a "$GITHUB_OUTPUT"
echo "stream=${REFSTREAM#*-}" | tee "$GITHUB_OUTPUT" echo "stream=${REFSTREAM#*-}" | tee -a "$GITHUB_OUTPUT"
- name: Find latest image - name: Find latest image
id: find-latest-image id: find-latest-image

View File

@ -53,7 +53,7 @@ jobs:
echo "MAJOR_MINOR=${PART_MAJOR}.${PART_MINOR}" echo "MAJOR_MINOR=${PART_MAJOR}.${PART_MINOR}"
echo "MAJOR_MINOR_PATCH=${PART_MAJOR}.${PART_MINOR}.${PART_PATCH}" echo "MAJOR_MINOR_PATCH=${PART_MAJOR}.${PART_MINOR}.${PART_PATCH}"
echo "RELEASE_BRANCH=release/v${PART_MAJOR}.${PART_MINOR}" echo "RELEASE_BRANCH=release/v${PART_MAJOR}.${PART_MINOR}"
} | tee "$GITHUB_OUTPUT" } | tee -a "$GITHUB_OUTPUT"
docs: docs:
name: Create docs release name: Create docs release