Skip to content

Commit

Permalink
working on syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagonnascimento committed Dec 6, 2023
1 parent 8c84560 commit 3a6d940
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 @@ -65,15 +65,15 @@ jobs:
- name: Getting org info
id: getOrgInfo
run: |
ORG_INFO_RESULT=$(sf org display --target-org ${{ vars.USERNAME }}.${{ inputs.sandboxName }} --json)
echo ORG_INFO_RESULT="$(sf org display --target-org ${{ vars.USERNAME }}.${{ inputs.sandboxName }} --json)"
ORG_INFO_RESULT="${ORG_INFO_RESULT//'%'/'%25'}"
ORG_INFO_RESULT="${ORG_INFO_RESULT//$'\n'/'%0A'}"
ORG_INFO_RESULT="${ORG_INFO_RESULT//$'\r'/'%0D'}"
- name: Getting Profile Id
id: getProfileId
run: |
echo "PROFILE_ID_RESULT=$(curl ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v58.0/query?q=SELECT+Id+FROM+Profile+WHERE+Name='System+Administrator' -H 'Authorization Bearer ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.accessToken }}' -H 'Content-Type: application/json\')"
echo PROFILE_ID_RESULT="$(curl ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v58.0/query?q=SELECT+Id+FROM+Profile+WHERE+Name='System+Administrator' -H 'Authorization Bearer ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.accessToken }}' -H 'Content-Type: application/json\')"
PROFILE_ID_RESULT="${PROFILE_ID_RESULT//'%'/'%25'}"
PROFILE_ID_RESULT="${PROFILE_ID_RESULT//$'\n'/'%0A'}"
PROFILE_ID_RESULT="${PROFILE_ID_RESULT//$'\r'/'%0D'}"
Expand Down

0 comments on commit 3a6d940

Please sign in to comment.