Skip to content

Commit

Permalink
Skip running cleanup on pull requests (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand authored Jun 18, 2024
2 parents 71c2079 + 1cabcc8 commit 8e189a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test_local_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
pr_number:
required: true
type: string
workflow_dispatch:

# When the cancel-in-progress: true option is specified, any concurrent jobs or workflows using the same
# concurrency group will cancel both the pending and currently running jobs or workflows. This allows only
Expand Down Expand Up @@ -192,7 +193,10 @@ jobs:
### CLEANUP AFTER TESTS
- name: Cleanup nebari deployment
if: always()
# Since this is not critical for most pull requests and takes more than half of the time
# in the CI, it makes sense to only run on merge to main or workflow_dispatch to speed
# up feedback cycle
if: github.ref_name == 'develop' || github.event_name == 'workflow_dispatch'
working-directory: local-deployment
run: |
nebari destroy --config nebari-config.yaml --disable-prompt

0 comments on commit 8e189a8

Please sign in to comment.