From d999a66b29808be11c500512f70a2aa61f08ea97 Mon Sep 17 00:00:00 2001 From: ok-nick Date: Sat, 30 Dec 2023 00:07:40 -0500 Subject: [PATCH] fix: allow boolean `cache` input --- .github/workflows/test.yml | 4 ++-- action.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index deed153..d77fecc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,8 +16,8 @@ jobs: test-cache: uses: ./.github/workflows/env.yml with: - cache: "true" + cache: true test-no-cache: uses: ./.github/workflows/env.yml with: - cache: "false" + cache: false diff --git a/action.yml b/action.yml index 4404ab1..4001247 100644 --- a/action.yml +++ b/action.yml @@ -69,7 +69,7 @@ runs: shell: bash - name: Cache binaries - if: ${{ inputs.cache == 'true' }} + if: ${{ inputs.cache == true || inputs.cache == 'true' }} uses: actions/cache@v3 with: path: |