diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1b5f348..550e524 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -29,21 +29,21 @@ jobs: key: cache-hit-hello-world-program - name: Checkout Linux Hello World binary - if: matrix.os == 'ubuntu-latest' && steps.restore-cache.outputs.cache-hit != true + if: matrix.os == 'ubuntu-latest' && steps.restore-cache.outputs.cache-hit == false uses: actions/checkout@v4 with: ref: hello-world-linux persist-credentials: false - name: Checkout macOS Hello World binary - if: matrix.os == 'macos-latest' && steps.restore-cache.outputs.cache-hit != true + if: matrix.os == 'macos-latest' && steps.restore-cache.outputs.cache-hit == false uses: actions/checkout@v4 with: ref: hello-world-macos persist-credentials: false - name: Move the binary to runner temp folder - if: steps.restore-cache.outputs.cache-hit != true + if: steps.restore-cache.outputs.cache-hit == false run: | mkdir $RUNNER_TEMP/hello-world-program mv hello $RUNNER_TEMP/hello-world-program diff --git a/action.yml b/action.yml index 9d8b4ea..3706984 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ runs: using: composite steps: - name: Install software to tool cache (Unix-like) - if: (runner.os == 'Linux' || runner.os == 'macOS') && inputs.cache_hit != true + if: (runner.os == 'Linux' || runner.os == 'macOS') && inputs.cache_hit == false shell: bash run: $GITHUB_ACTION_PATH/scripts/install/Unix-like.sh env: @@ -29,7 +29,7 @@ runs: folder_name: ${{ inputs.folder_name }} - name: Install software to tool cache (Windows) - if: runner.os == 'Windows' && inputs.cache_hit != true + if: runner.os == 'Windows' && inputs.cache_hit == false shell: pwsh run: '& $env:GITHUB_ACTION_PATH\scripts\install\Windows.ps1' env: