Skip to content

Commit

Permalink
Fix cache input
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Aug 23, 2024
1 parent 85a7df5 commit d829d0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
uses: gerlero/apt-install@v1
with:
packages: ${{ steps.prep.outputs.apt-packages-pre }}
cache: ${{ inputs.cache }}
cache: ${{ inputs.cache && inputs.cache != 'false' }}
- name: Add OpenFOAM APT repository (openfoam.org)
if: steps.prep.outputs.apt-packages && inputs.openfoam-version < 1000
run: |
Expand Down Expand Up @@ -71,11 +71,11 @@ runs:
update: ${{ inputs.openfoam-version < 1000 }}
cache: ${{ inputs.cache }}
- name: Get OS version
if: runner.os == 'macOS' && inputs.cache
if: runner.os == 'macOS' && inputs.cache && inputs.cache != 'false'
id: os-version
uses: sersoft-gmbh/os-version-action@v3
- name: Cache OpenFOAM on macOS
if: runner.os == 'macOS' && inputs.cache
if: runner.os == 'macOS' && inputs.cache && inputs.cache != 'false'
id: cache-macos
uses: actions/cache@v4
with:
Expand Down

0 comments on commit d829d0b

Please sign in to comment.