Skip to content

Commit 6d257e6

Browse files
1 parent 4df9b90 commit 6d257e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/combine-prs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
BRANCHES_TO_COMBINE: ${{ steps.fetch-branch-names.outputs.result }}
106106
COMBINE_BRANCH_NAME: ${{ github.event.inputs.combineBranchName }}
107107
run: |
108-
echo "${{steps.fetch-branch-names.outputs.result}}"
108+
echo "$BRANCHES_TO_COMBINE"
109109
sourcebranches="${BRANCHES_TO_COMBINE%\"}"
110110
sourcebranches="${sourcebranches#\"}"
111111
@@ -123,10 +123,12 @@ jobs:
123123
# Creates a PR with the new combined branch
124124
- uses: actions/[email protected]
125125
name: Create Combined Pull Request
126+
env:
127+
PRS_STRING: ${{ steps.fetch-branch-names.outputs.prs-string }}
126128
with:
127129
github-token: ${{secrets.GITHUB_TOKEN}}
128130
script: |
129-
const prString = `${{ steps.fetch-branch-names.outputs.prs-string }}`;
131+
const prString = process.env.PRS_STRING;
130132
const body = 'This PR was created by the Combine PRs action by combining the following PRs:\n' + prString;
131133
await github.pulls.create({
132134
owner: context.repo.owner,

0 commit comments

Comments
 (0)