Skip to content

Commit

Permalink
fix: Use boolean on test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimMouse committed Oct 24, 2023
1 parent 18eff41 commit 4a2f999
Showing 1 changed file with 3 additions and 3 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
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
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
run: |
mkdir $RUNNER_TEMP/hello-world-program
mv hello $RUNNER_TEMP/hello-world-program
Expand Down

0 comments on commit 4a2f999

Please sign in to comment.