Skip to content

Commit

Permalink
Change version for easy debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Aug 28, 2024
1 parent 06b1671 commit 108f559
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ jobs:
- name: Get build versions
id: versions
run: |
awk -F':' '/^[[:blank:]]+otelcol_version[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print "otelcol-version="$2 }' builder-config.yaml >> $GITHUB_OUTPUT
awk -F':' '/^[[:blank:]]+output_path[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print "build-path="$2 }' builder-config.yaml >> $GITHUB_OUTPUT
awk -F':' '/^[[:blank:]]+name[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print "build-name="$2 }' builder-config.yaml >> $GITHUB_OUTPUT
awk -F':' '/^[[:blank:]]+version[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print "version="$2 }' builder-config.yaml >> $GITHUB_OUTPUT
OTELCOL_VERSION=$(awk -F':' '/^[[:blank:]]+otelcol_version[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print $2 }' builder-config.yaml)
echo "otelcol-version=$OTELCOL_VERSION" >> $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
BUILD_NAME=$(awk -F':' '/^[[:blank:]]+name[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print $2 }' builder-config.yaml)
echo "build-name=$BUILD_NAME" >> $GITHUB_OUTPUT
VERSION=$(awk -F':' '/^[[:blank:]]+version[[:blank:]]*:/{ gsub("\"","",$2); gsub(" ", "", $2); print $2 }' builder-config.yaml)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Download the collector builder
run: |
Expand Down

0 comments on commit 108f559

Please sign in to comment.