From 4a2f999d7dfd5a5837561a9c622649de8c08d74c Mon Sep 17 00:00:00 2001 From: Anim Mouse Date: Tue, 24 Oct 2023 21:07:39 +0800 Subject: [PATCH] fix: Use boolean on test workflow --- .github/workflows/test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ed1e422..1f25fb4 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 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