Skip to content

Commit

Permalink
fix: Use equal to false
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimMouse committed Oct 24, 2023
1 parent 5d40aeb commit 8304d45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 8304d45

Please sign in to comment.