From e2defc79149f33f51aa082a591ab6814ee5410b2 Mon Sep 17 00:00:00 2001 From: "Matthew J. Milner" Date: Mon, 11 Nov 2024 09:58:02 +0100 Subject: [PATCH] Add tmate debugging and cleanup step, turn off .flatpak-builder cache Signed-off-by: Matthew J. Milner --- .github/workflows/flatpak.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml index 9569ac6f..cc8d7ba9 100644 --- a/.github/workflows/flatpak.yml +++ b/.github/workflows/flatpak.yml @@ -65,6 +65,10 @@ jobs: repository: flathub/shared-modules path: shared-modules + - name: Setup tmate session + if: failure() + uses: mxschmitt/action-tmate@v3 + - name: Move manifest run: mv src/avogadroapp/flatpak/org.openchemistry.Avogadro2.yaml ./ @@ -74,4 +78,14 @@ jobs: bundle: avogadro2.flatpak branch: nightly manifest-path: org.openchemistry.Avogadro2.yaml + cache: false cache-key: flatpak-builder-${{ github.sha }} + + - name: Cleanup + if: ${{ always() }} # To ensure this step runs even when earlier steps fail + shell: bash + run: | + ls -la ./ + rm -rf ./* || true + rm -rf ./.??* || true + ls -la ./