Skip to content

Commit

Permalink
set -o pipefail + do not rely on bump being the last line -- parse fr…
Browse files Browse the repository at this point in the history
…om debug msg
  • Loading branch information
yarikoptic committed Feb 26, 2024
1 parent c41a49b commit e9fe960
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
id: auto-version
run: |
# to be able to debug if something goes wrong
set -o pipefail
auto version -v | tee /tmp/auto-version
version="$(tail -n 1 /tmp/auto-version)"
version=$(sed -ne '/Calculated SEMVER bump:/s,.*: *,,p' < /tmp/auto-version)
echo "version=$version" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e9fe960

Please sign in to comment.