Skip to content

Commit e7d6be8

Browse files
committed
fix: remove toJSON() causing extra quotes in PR creation
1 parent d46bc2b commit e7d6be8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/rc-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ jobs:
372372
uses: actions/github-script@v7
373373
with:
374374
script: |
375-
const version = `${{ toJSON(needs.validate-release.outputs.base_version) }}`;
376-
const head = `${{ toJSON(needs.prepare-branch.outputs.release_branch) }}`;
375+
const version = '${{ needs.validate-release.outputs.base_version }}';
376+
const head = '${{ needs.prepare-branch.outputs.release_branch }}';
377377
const base = 'master';
378378
// Find existing PR
379379
const { data: prs } = await github.rest.pulls.list({ owner: context.repo.owner, repo: context.repo.repo, state: 'open', head: `${context.repo.owner}:${head}` });

0 commit comments

Comments
 (0)