From 21ca7a1020e825344b7ab9f7823c0dc204fcd6b9 Mon Sep 17 00:00:00 2001 From: tnascimento Date: Tue, 5 Dec 2023 23:17:38 -0300 Subject: [PATCH] working the syntax --- .github/workflows/sandboxResumeCreation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sandboxResumeCreation.yml b/.github/workflows/sandboxResumeCreation.yml index 4fb41ba..1d3e9c7 100644 --- a/.github/workflows/sandboxResumeCreation.yml +++ b/.github/workflows/sandboxResumeCreation.yml @@ -75,7 +75,7 @@ jobs: - name: Creating User record id: createUser run: | - echo "USER_CREATE_RESULT=$(curl ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v59.0/sobjects/User/ -H 'Authorization: Bearer ${{ fromJson(steps.getOrgInfo.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 + echo "USER_CREATE_RESULT=$(curl ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v59.0/sobjects/User/ -H 'Authorization: Bearer ${{ fromJson(steps.getOrgInfo.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'': ${{ fromJson(steps.getProfileId.outputs.PROFILE_ID_RESULT).records[0].Id }},''LanguageLocaleKey'':''en_US''}')" >> $GITHUB_OUTPUT - name: Post creation steps if: github.event.inputs.buildfile != ''