From 8729a68fb70da10f423aed0ce653e242d6a43cbb Mon Sep 17 00:00:00 2001 From: Gabriel Gerlero Date: Sat, 24 Aug 2024 14:21:36 -0300 Subject: [PATCH] Fix errors on Ubuntu 20.04 --- action.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 22e3cc1..71d67a0 100644 --- a/action.yml +++ b/action.yml @@ -63,17 +63,16 @@ runs: curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash shell: bash + - name: Get OS version + id: os-version + uses: sersoft-gmbh/os-version-action@v3 - name: Install OpenFOAM on Linux if: steps.prep.outputs.apt-packages uses: gerlero/apt-install@v1 with: packages: ${{ steps.prep.outputs.apt-packages }} update: ${{ inputs.openfoam-version < 1000 }} - cache: ${{ inputs.cache }} - - name: Get OS version - if: runner.os == 'macOS' && inputs.cache && inputs.cache != 'false' - id: os-version - uses: sersoft-gmbh/os-version-action@v3 + cache: ${{ inputs.cache && inputs.cache != 'false' && steps.os-version.outputs.version != '20.04' }} - name: Cache OpenFOAM on macOS if: runner.os == 'macOS' && inputs.cache && inputs.cache != 'false' id: cache-macos