mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
ci: Move always() from step to job so cleanup happens on failures
The `if: always()` can work on steps as well, but in this case we need it at the job level so it modifies the `needs` clause. See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-not-requiring-successful-dependent-jobs
This commit is contained in:
parent
dc58438476
commit
6646cf50b4
1 changed files with 1 additions and 2 deletions
3
.github/workflows/spectesting.yml
vendored
3
.github/workflows/spectesting.yml
vendored
|
|
@ -78,10 +78,9 @@ jobs:
|
|||
runs-on: self-hosted
|
||||
name: Cleanup Post Vagrant-Spec Tests
|
||||
needs: spec-tests
|
||||
if: always()
|
||||
steps:
|
||||
- name: Clean Packet
|
||||
if: always()
|
||||
run: ./.ci/spec/clean-packet.sh
|
||||
- name: Clean Workspace
|
||||
if: always()
|
||||
run: rm -rf ${{ github.workspace }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue