Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RupertBarrow authored Mar 28, 2023
1 parent 5a827c8 commit 758ff6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ runs:
if: ${{ always() }}
shell: bash
run: |
orginfo=`cci org info --org ${{ inputs.org-name }} --json | jq .is_sandbox`
if [ "$is_sandbox" = "false" ]; then
orginfo=`cci org info --org ${{ inputs.org-name }} --json | grep is_sandbox`
IFS=':'
read -a strarr <<< "$orginfo"
is_sandbox=${strarr[1]}
if [ "$is_sandbox" = " false," ]; then
cci org scratch_delete ${{ inputs.org-name }}
fi

0 comments on commit 758ff6b

Please sign in to comment.