We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d383b6 commit b8d1d5eCopy full SHA for b8d1d5e
1 file changed
.github/workflows/release-please.yaml
@@ -76,7 +76,7 @@ jobs:
76
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
77
run: |
78
# Take only the first line to avoid git trailers (e.g. Co-authored-by) breaking $GITHUB_OUTPUT
79
- FIRST_LINE=$(echo "$COMMIT_MESSAGE" | head -1)
+ FIRST_LINE=${COMMIT_MESSAGE%%$'\n'*}
80
echo "version=$( echo "$FIRST_LINE" | sed 's/^release: v\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/' )" >> $GITHUB_OUTPUT
81
echo "pr_number=$( echo "$FIRST_LINE" | sed 's/.*(\#\([0-9]\+\)).*$/\1/' )" >> $GITHUB_OUTPUT
82
echo "release_branch=release/v$( echo "$FIRST_LINE" | sed 's/^release: v\([0-9]\+\.[0-9]\+\).*$/\1/' )" >> $GITHUB_OUTPUT
0 commit comments