Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Mar 22, 2024
1 parent 0c3e80c commit f55906b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-final-boshrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
RELEASE: "otelcollector-binary"
DESCRIPTION: "OpenTelemetry Collector binary Release"
BOSH_CLI_VERSION: "7.5.5"

permissions: {}
Expand Down Expand Up @@ -44,23 +45,24 @@ jobs:
id: boshrelease
run: |
bosh sync-blobs
bosh create-release --final --tarball="releases/$RELEASE.tgz"
bosh create-release --final --tarball="$GITHUB_WORKSPACE/releases/$RELEASE.tgz"
version=$(ls releases/$RELEASE/$RELEASE-*.yml | sed 's/.*\/.*-\(.*\)\.yml$/\1/' | sort -t. -k 1,1nr -k 2,2nr | head -1)
echo "version=${version}" >> $GITHUB_OUTPUT
echo "file=$GITHUB_WORKSPACE/releases/$RELEASE.tgz" >> $GITHUB_OUTPUT
- name: Uploads artifact release
uses: actions/upload-artifact@v4
with:
name: boshelease
path: "releases/$RELEASE.tgz"
path: ${{ steps.boshrelease.outputs.file }}

- name: Generate release notes from git commits
run: |
lastcommit=$(git log --no-walk --tags --pretty="%h %s" | awk 'NR==1{ print $1 }')
git_changes=$(git log --pretty="%h %aI %s (%an)" $lastcommit..@ | sed 's/^/- /')
version="${{ steps.boshrelease.outputs.version }}"
sha1=$(openssl sha1 "${{ steps.boshrelease.outputs.file }}" | awk '{ print $2 }')
cat <<EOF | tee > CHANGELOG.txt
cat <<EOF > CHANGELOG.txt
# $RELEASE version $version
$DESCRIPTION
Expand Down

0 comments on commit f55906b

Please sign in to comment.