Skip to content

Commit f918df5

Browse files
committed
ci: fix deploy workflow crash on commit messages with quotes
1 parent ab0ec0e commit f918df5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ jobs:
7474

7575
- name: Check for skip tags
7676
id: skip
77+
env:
78+
COMMIT_MSG: ${{ github.event.head_commit.message || github.event.pull_request.title || '' }}
7779
run: |
78-
COMMIT_MSG="${{ github.event.head_commit.message || github.event.pull_request.title || '' }}"
7980
echo "skip_cms=$([[ "$COMMIT_MSG" == *"[skip-cms]"* ]] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
8081
echo "skip_web=$([[ "$COMMIT_MSG" == *"[skip-web]"* ]] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
8182

0 commit comments

Comments
 (0)