From 843b8cee824aedfac1e7da1d6c80c41f16d73d53 Mon Sep 17 00:00:00 2001 From: Stanislav German-Evtushenko Date: Mon, 30 May 2022 09:09:57 +0900 Subject: [PATCH] Fix expression in caching doc (#18243) --- .../caching-dependencies-to-speed-up-workflows.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md b/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md index 343987cd96..40943c7936 100644 --- a/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md +++ b/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md @@ -140,7 +140,7 @@ jobs: {% raw %}${{ runner.os }}-build-{% endraw %} {% raw %}${{ runner.os }}-{% endraw %} - - if: {% raw %}${{ steps.cache-npm.outputs.cache-hit == false }}{% endraw %} + - if: {% raw %}${{ steps.cache-npm.outputs.cache-hit == 'false' }}{% endraw %} name: List the state of node modules continue-on-error: true run: npm list @@ -196,7 +196,7 @@ You can use the output of the `cache` action to do something based on whether a In the example workflow above, there is a step that lists the state of the Node modules if a cache miss occurred: ```yaml -- if: {% raw %}${{ steps.cache-npm.outputs.cache-hit == false }}{% endraw %} +- if: {% raw %}${{ steps.cache-npm.outputs.cache-hit == 'false' }}{% endraw %} name: List the state of node modules continue-on-error: true run: npm list