Skip to content

Commit 1e17920

Browse files
committed
#260 - always delete the scratch org after a failed build
1 parent 1c217d6 commit 1e17920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.and.test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
- run: sfdx force:source:push
2525
- run: sfdx force:apex:test:run -w 5
2626
- name: Destroy scratch org
27-
#Need to read more about a post action -- experimental new feature https://github.community/t5/GitHub-Actions/About-post-in-an-Action/td-p/41973
28-
#so that the scratch org gets deleted even if the source push or test run fails so we don't have a pileup of dysfunctional orgs
2927
run: sfdx force:org:delete -p
28+
if: always()
29+

0 commit comments

Comments
 (0)