Skip to content

Commit

Permalink
trying to get the sintax right
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagonnascimento committed Dec 6, 2023
1 parent 6354664 commit 959a1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sandboxResumeCreation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 != ''
Expand Down

0 comments on commit 959a1b3

Please sign in to comment.