We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc4aade commit 77e37bdCopy full SHA for 77e37bd
1 file changed
.github/workflows/publish.yml
@@ -17,9 +17,9 @@ jobs:
17
- name: Check if release commit
18
id: check
19
run: |
20
- MSG="${{ github.event.head_commit.message }}"
21
- if echo "$MSG" | grep -qP '^release: v[\d]'; then
22
- VER=$(echo "$MSG" | sed 's/release: v\([^ ]*\).*/\1/')
+ FIRST_LINE=$(echo "${{ github.event.head_commit.message }}" | head -1)
+ if echo "$FIRST_LINE" | grep -qP '^release: v[\d]'; then
+ VER=$(echo "$FIRST_LINE" | sed 's/release: v\([^ ]*\).*/\1/')
23
echo "is_release=true" >> "$GITHUB_OUTPUT"
24
echo "version=$VER" >> "$GITHUB_OUTPUT"
25
echo "Detected release v${VER}"
0 commit comments