From 02577dd49a2640d2e489a7ca3bc6a3675bb34fde Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Thu, 18 Jun 2026 22:11:59 -0400 Subject: [PATCH] Fix cache-step condition in openvic-sim-build/action.yml Change the cache setup condition to correctly check the string input value. GitHub Actions inputs are strings, so replacing `if: ${{ !inputs.disable-cache }}` with `if: ${{ inputs.disable-cache != 'true' }}` ensures the cache step runs unless the caller explicitly sets disable-cache to 'true'. This fixes an issue where the cache was never used when disable-cache was omitted or set to other truthy values. Affects .github/actions/openvic-dl-build/action.yml and all build workflows. --- .github/actions/openvic-sim-build/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/openvic-sim-build/action.yml b/.github/actions/openvic-sim-build/action.yml index eac59c37..ab5262cb 100644 --- a/.github/actions/openvic-sim-build/action.yml +++ b/.github/actions/openvic-sim-build/action.yml @@ -32,7 +32,7 @@ runs: steps: - name: Setup build cache uses: OpenVicProject/openvic-cache@master - if: ${{ !inputs.disable-cache }} + if: ${{ inputs.disable-cache != 'true' }} with: cache-name: ${{ inputs.identifier }} base-branch: ${{ inputs.cache-base-branch }}