From 05e9926d6c1af050575822322ad9b745a246ff40 Mon Sep 17 00:00:00 2001 From: "Matthew J. Milner" Date: Mon, 16 Dec 2024 03:32:12 +0100 Subject: [PATCH] Fix macOS checkouts, add cleanup step to Linux Signed-off-by: Matthew J. Milner --- .github/workflows/build_linux.yml | 9 +++++++++ .github/workflows/build_mac.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index c15dbf612e..292dd3b867 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -153,3 +153,12 @@ jobs: - name: Setup tmate session if: ${{ failure() }} uses: mxschmitt/action-tmate@v3 + + - 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 ./ diff --git a/.github/workflows/build_mac.yml b/.github/workflows/build_mac.yml index a6eea2482a..67cb4fb970 100644 --- a/.github/workflows/build_mac.yml +++ b/.github/workflows/build_mac.yml @@ -70,13 +70,13 @@ jobs: - name: Checkout avogadroapp uses: actions/checkout@v4 with: + repository: openchemistry/avogadroapp path: openchemistry/avogadroapp fetch-depth: 0 - name: Checkout avogadrolibs uses: actions/checkout@v4 with: - repository: openchemistry/avogadrolibs path: openchemistry/avogadrolibs fetch-depth: 0