From 959a1b3e490bb5cbc40de198e130242c68744328 Mon Sep 17 00:00:00 2001 From: tnascimento Date: Tue, 5 Dec 2023 21:21:23 -0300 Subject: [PATCH] trying to get the sintax right --- .github/workflows/sandboxResumeCreation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sandboxResumeCreation.yml b/.github/workflows/sandboxResumeCreation.yml index 8d5e419..8e10039 100644 --- a/.github/workflows/sandboxResumeCreation.yml +++ b/.github/workflows/sandboxResumeCreation.yml @@ -64,12 +64,12 @@ jobs: - name: Getting org info id: orgInfo - run: echo "ORG_INFO=$(sf org display --target-org ${{ vars.USERNAME }}.${{ inputs.sandboxName }} --json)" >> $GITHUB_OUTPUT + run: echo "ORG_INFO_RESULT=$(sf org display --target-org ${{ vars.USERNAME }}.${{ inputs.sandboxName }} --json)" >> $GITHUB_OUTPUT - name: Creating User record id: createUser run: | - echo "USER_CREATE_RESULT=$(curl ${{ fromJson(steps.orgInfo.outputs.ORG_INFO).result.instanceUrl }}/services/data/v59.0/sobjects/User/ -H 'Authorization Bearer ${{ fromJson(steps.orgInfo.outputs.ORG_INFO).result.accessToken }}' -H 'Content-Type: application/json\' -X POST -d '{''Username'': ${{ inputs.username }},''FirstName'':''Sandbox'',''LastName'':''Owner'',''Email'': ${{ inputs.email }} ,''Alias'':''sbxown'',''TimeZoneSidKey'':''America/Sao_Paulo'',''LocaleSidKey'':''pt_BR'',''EmailEncodingKey'':''UTF-8'',''ProfileId'':''00eHp000002OQMuIAO'',''LanguageLocaleKey'':''en_US''}')" >> $GITHUB_OUTPUT + echo "USER_CREATE_RESULT=$(curl ${{ fromJson(steps.orgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v59.0/sobjects/User/ -H 'Authorization Bearer ${{ fromJson(steps.orgInfo.outputs.ORG_INFO_RESULT).result.accessToken }}' -H 'Content-Type: application/json\' -X POST -d '{''Username'': ${{ inputs.username }},''FirstName'':''Sandbox'',''LastName'':''Owner'',''Email'': ${{ inputs.email }} ,''Alias'':''sbxown'',''TimeZoneSidKey'':''America/Sao_Paulo'',''LocaleSidKey'':''pt_BR'',''EmailEncodingKey'':''UTF-8'',''ProfileId'':''00eHp000002OQMuIAO'',''LanguageLocaleKey'':''en_US''}')" >> $GITHUB_OUTPUT - name: Post creation steps if: github.event.inputs.buildfile != ''