From fee3b5cf073abecf9034b57a64d14a9a697ffc2c Mon Sep 17 00:00:00 2001 From: Jose Riguera Date: Wed, 28 Aug 2024 14:04:50 +0200 Subject: [PATCH] Add tee --- .github/workflows/release-artifacts.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index ab5bb60..fbaa783 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -38,13 +38,14 @@ jobs: id: versions run: | OTELCOL_VERSION=$(awk -F':' '/^[[:blank:]]+otelcol_version[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print $2 }' builder-config.yaml) - echo "otelcol-version=$OTELCOL_VERSION" >> $GITHUB_OUTPUT + echo "otelcol-version=$OTELCOL_VERSION" | tee -a $GITHUB_OUTPUT BUILD_PATH=$(awk -F':' '/^[[:blank:]]+output_path[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print $2 }' builder-config.yaml) - echo "build-path=$BUILD_PATH" >> $GITHUB_OUTPUT + echo "build-path=$BUILD_PATH" | tee -a $GITHUB_OUTPUT BUILD_NAME=$(awk -F':' '/^[[:blank:]]+name[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print $2 }' builder-config.yaml) - echo "build-name=$BUILD_NAME" >> $GITHUB_OUTPUT + echo "build-name=$BUILD_NAME" | tee -a $GITHUB_OUTPUT VERSION=$(awk -F':' '/^[[:blank:]]+version[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print $2 }' builder-config.yaml) - echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "version=$VERSION" | tee -a $GITHUB_OUTPUT + - name: Download the collector builder run: |