Skip to content

Commit 2d3d508

Browse files
authored
Merge pull request #4074 from amvanbaren/automate-claim-namespace
use JSON.stringify instead of toJSON
2 parents f6997a6 + e74aa57 commit 2d3d508

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/claim-namespace.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ jobs:
3535
endpoint: https://open-vsx.org/admin/api/namespace/${{steps.get_namespace.outputs.namespace}}/members?token=${{secrets.OPENVSX_TOKEN}}
3636
configuration: '{ "method": "GET" }'
3737
- id: namespace_members
38-
run: echo "members=${{ toJSON(fromJSON(steps.get_namespace_data.outputs.fetchApiData).namespaceMemberships) }}" >> "$GITHUB_OUTPUT"
38+
uses: actions/github-script@v7
39+
env:
40+
DATA: ${{ steps.get_namespace_data.outputs.fetchApiData }}
41+
with:
42+
script: |
43+
const json = JSON.parse(process.env.DATA);
44+
core.setOutput('members', JSON.stringify(json.namespaceMemberships));
3945
- id: make_owner
4046
uses: actions/github-script@v7
4147
env:

0 commit comments

Comments
 (0)