You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI/CD shouldn't create new scratch org for each modification of the PR. Instead it should create an org and re-use it if possible.
Org can be named using PR number, and found by this command:
(Note, JQ is needed)
- name: List all orgs
run: |
sf org list --json --all --skip-connection-status | jq . > sfOrgList.json
cat sfOrgList.json
jq ".result.scratchOrgs | .[] | select(.alias == "build_${{ github.event.pull_request.number }}")'" sfOrgList.json > scratch.json
cat scratch.json
The text was updated successfully, but these errors were encountered:
CI/CD shouldn't create new scratch org for each modification of the PR. Instead it should create an org and re-use it if possible.
Org can be named using PR number, and found by this command:
(Note, JQ is needed)
- name: List all orgs
run: |
sf org list --json --all --skip-connection-status | jq . > sfOrgList.json
cat sfOrgList.json
jq ".result.scratchOrgs | .[] | select(.alias == "build_${{ github.event.pull_request.number }}")'" sfOrgList.json > scratch.json
cat scratch.json
The text was updated successfully, but these errors were encountered: