Skip to content

Commit

Permalink
[Actions] Ensure that strings are valid in json. (#13890)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Mar 14, 2023
1 parent b601c4b commit 75cf1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sdk-insertion-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
run: |
Write-Host "Commit message is $Env:COMMIT_MESSAGE"
$title = ($Env:COMMIT_MESSAGE -split '\n')[0]
$title = ($Env:COMMIT_MESSAGE -split '\n')[0] | ConvertTo-Json
"COMMIT_TITLE=$title" >> $env:GITHUB_OUTPUT
env:
COMMIT_MESSAGE: "${{ github.event.head_commit.message }}"
Expand Down

0 comments on commit 75cf1e6

Please sign in to comment.