diff --git a/.github/workflows/release-patch-from-comment.yml b/.github/workflows/release-patch-from-comment.yml index c09d76cfec..c1d2c549eb 100644 --- a/.github/workflows/release-patch-from-comment.yml +++ b/.github/workflows/release-patch-from-comment.yml @@ -55,8 +55,7 @@ jobs: uses: 'actions/github-script@00f12e3e20659f42342b1c0226afda7f7c042325' with: script: | - const argsStr = '${{ steps.slash_command.outputs.command-arguments }}'; - const args = argsStr ? JSON.parse(argsStr) : {}; + const args = ${{ fromJSON(steps.slash_command.outputs.command-arguments) }}; github.rest.actions.createWorkflowDispatch({ owner: context.repo.owner, repo: context.repo.repo,