Skip to content

Commit

Permalink
Move delete after history artifact capture
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Oct 11, 2024
1 parent 59021f3 commit 4a2a50e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/feature-test-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ jobs:
fi
shell: bash

- name: Delete Scratch Org
if: always()
run: cci org scratch_delete ${{ inputs.org_name }}
shell: bash

- name: Capture CumulusCI Build History
if: always()
run: |
Expand All @@ -155,6 +150,11 @@ jobs:
name: cci-build-history
path: cci_build_history.json

- name: Delete Scratch Org
if: always()
run: cci org scratch_delete ${{ inputs.org_name }}
shell: bash

- name: Check Job Status
if: always()
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/feature-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ jobs:
run: cci history enable
- name: Run Feature Test
run: cci flow run ci_feature --use-snapshots
- name: Delete Scratch Org
if: always()
run: cci org scratch_delete ${{ inputs.org }}
shell: bash

- name: Capture CumulusCI Build History
if: always()
run: |
Expand All @@ -75,6 +70,11 @@ jobs:
name: cci-dependencies-history
path: cci_dependencies_history.json

- name: Delete Scratch Org
if: always()
run: cci org scratch_delete ${{ inputs.org }}
shell: bash

- name: Upload CumulusCI Build History
if: always()
uses: actions/upload-artifact@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/snapshot-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ jobs:
exit 1
}
shell: bash
- name: Delete Scratch Org
if: ${{ always() }}
run: |
cci org scratch_delete ${{ inputs.org_name }}
shell: bash
- name: Capture CumulusCI Build History
if: always()
run: |
Expand All @@ -140,6 +135,11 @@ jobs:
name: cci-dependencies-history
path: cci_dependencies_history.json

- name: Delete Scratch Org
if: ${{ always() }}
run: |
cci org scratch_delete ${{ inputs.org_name }}
shell: bash
- name: Upload CumulusCI Build History
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 4a2a50e

Please sign in to comment.