Skip to content

Commit

Permalink
add scratch org deletion to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
anoble2020 committed Jan 8, 2025
1 parent 3a300ef commit e1e173f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ jobs:
directory: ./tests/apex
token: ${{ secrets.CODECOV_TOKEN }}
slug: anoble2020/triggerframework
fail_ci_if_error: true
fail_ci_if_error: true

# Add this step at the end to clean up
- name: Delete Scratch Org
if: always() # This ensures the org is deleted even if previous steps fail
run: sf org delete scratch -p -o scratch-org

0 comments on commit e1e173f

Please # to comment.