Skip to content

Commit 7b80d7d

Browse files
author
amvanbaren
committed
pass JSON as string for process env
1 parent e74aa57 commit 7b80d7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/claim-namespace.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
- id: make_owner
4646
uses: actions/github-script@v7
4747
env:
48-
MEMBERS: ${{ fromJSON(steps.namespace_members.outputs.members) }}
48+
MEMBERS: ${{ steps.namespace_members.outputs.members }}
4949
LOGIN_NAME: ${{ github.event.issue.user.login }}
5050
with:
5151
script: |
52-
const members = process.env.MEMBERS;
52+
const members = JSON.parse(process.env.MEMBERS);
5353
const makeOwner = members.length == 1 && members[0].user.loginName == process.env.LOGIN_NAME && members[0].role == 'contributor';
5454
core.setOutput('makeOwner', makeOwner);
5555
- id: change_member

0 commit comments

Comments
 (0)