From e788776ec37b3d73cd92d4fa503fec80de5e323d Mon Sep 17 00:00:00 2001 From: Laurence Isla Date: Tue, 23 Apr 2024 16:34:55 -0500 Subject: [PATCH] ci: clean ARM server even when previous steps or jobs fail --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a2fec31d2..d36ef99fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -91,7 +91,7 @@ jobs: source: "${{ steps.Remote-Dir.outputs.remotepath }}/result.tar.xz" target: "result.tar.xz" - name: Remove uploaded files from server - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} + if: ${{ always() && !startsWith(github.ref, 'refs/tags/v') }} uses: appleboy/ssh-action@master env: REMOTE_DIR: ${{ steps.Remote-Dir.outputs.remotepath }} @@ -315,7 +315,7 @@ jobs: needs: - arm - docker-arm - if: startsWith(github.ref, 'refs/tags/v') + if: ${{ always() && startsWith(github.ref, 'refs/tags/v') }} runs-on: ubuntu-22.04 env: REMOTE_DIR: ${{ needs.arm.outputs.remotepath }}