Skip to content

Commit

Permalink
Add tee
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Aug 28, 2024
1 parent 108f559 commit fee3b5c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit fee3b5c

Please sign in to comment.