Skip to content

Commit aaa6bc8

Browse files
authored
Merge pull request #10 from mindsdb/fix/slack_pr_quotes_3
Escape PR title
2 parents 6d40c67 + 108dbc2 commit aaa6bc8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

slack-deploy-msg/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ outputs:
3030
runs:
3131
using: 'composite'
3232
steps:
33+
- name: Clean PR Title
34+
shell: bash
35+
run: |
36+
PR_TITLE=$(echo "${{ github.event.pull_request.title }}" | sed 's/"/\\"/g')
37+
echo "PR_TITLE=$PR_TITLE" >> $GITHUB_ENV
3338
- name: Notify of deployment
3439
id: slack
3540
uses: slackapi/slack-github-action@v1.26.0
36-
env:
37-
PR_TITLE: ${{ github.event.pull_request.title }}
3841
with:
3942
channel-id: ${{ inputs.channel-id }}
4043
update-ts: ${{ inputs.update-message-id }}

0 commit comments

Comments
 (0)