Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cache input checks #38

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
packages: ca-certificates
upgrade: false
install-recommends: false
cache: ${{ inputs.cache && inputs.cache != 'false' }}
cache: ${{ inputs.cache == 'true' }}
- name: Prepare
id: prep
run: |
Expand Down Expand Up @@ -53,9 +53,9 @@ runs:
with:
packages: ${{ steps.prep.outputs.apt-package }}
install-recommends: false
cache: ${{ inputs.cache && inputs.cache != 'false' }}
cache: ${{ inputs.cache == 'true' }}
- name: Restore OpenFOAM on macOS from cache
if: runner.os == 'macOS' && inputs.cache && inputs.cache != 'false'
if: runner.os == 'macOS' && inputs.cache == 'true'
id: cache-macos
uses: actions/cache/restore@v4
with:
Expand All @@ -67,7 +67,7 @@ runs:
brew install --no-quarantine gerlero/openfoam/openfoam@${{ inputs.openfoam-version }}
shell: bash
- name: Save OpenFOAM on macOS to cache
if: runner.os == 'macOS' && inputs.cache && inputs.cache != 'false' && steps.cache-macos.outputs.cache-hit != 'true'
if: runner.os == 'macOS' && inputs.cache == 'true' && steps.cache-macos.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: /Applications/OpenFOAM-v${{ inputs.openfoam-version }}.app
Expand Down
Loading