We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca4eb7f commit cf535ebCopy full SHA for cf535eb
.github/workflows/maven-publish.yml
@@ -11,7 +11,7 @@ jobs:
11
- uses: actions/checkout@v3
12
- name: Extract version information
13
run: |
14
- VERSION=$(echo "${{ github.event.head_commit.message }}" | grep -oE 'Release [0-9]+\.[0-9]+\.[0-9]+' | sed 's/Release //')
+ VERSION=$(echo "${{ github.event.head_commit.message }}" | grep -oE 'Release [0-9]+\.[0-9]+\.[0-9]+' | head -n 1 | sed 's/Release //')
15
if [[ -n "$VERSION" ]]; then
16
echo "VERSION=$VERSION" >> $GITHUB_ENV
17
fi
0 commit comments