ci : fix check-release message parsing (#24751)
This commit is contained in:
@@ -46,11 +46,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: check
|
- id: check
|
||||||
|
env:
|
||||||
|
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||||
echo "should_release=true" >> $GITHUB_OUTPUT
|
echo "should_release=true" >> $GITHUB_OUTPUT
|
||||||
elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/master" ]]; then
|
elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/master" ]]; then
|
||||||
if echo "${{ github.event.head_commit.message }}" | grep -q '\[no release\]'; then
|
if echo "$COMMIT_MESSAGE" | grep -q '\[no release\]'; then
|
||||||
echo "should_release=false" >> $GITHUB_OUTPUT
|
echo "should_release=false" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "should_release=true" >> $GITHUB_OUTPUT
|
echo "should_release=true" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user