Skip to content

Fix cache-step condition in openvic-sim-build/action.yml#775

Merged
Spartan322 merged 1 commit into
masterfrom
fix/action-build-cache
Jun 19, 2026
Merged

Fix cache-step condition in openvic-sim-build/action.yml#775
Spartan322 merged 1 commit into
masterfrom
fix/action-build-cache

Conversation

@Spartan322

Copy link
Copy Markdown
Member

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.

@Spartan322 Spartan322 requested a review from a team as a code owner June 19, 2026 02:12
@Spartan322 Spartan322 added bug Something isn't working meta labels Jun 19, 2026
@Spartan322 Spartan322 changed the title Fix cache-step condition in action.yml Fix cache-step condition in openvic-sim-build/action.yml Jun 19, 2026
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.
@Spartan322 Spartan322 force-pushed the fix/action-build-cache branch from ed87433 to 02577dd Compare June 19, 2026 02:13
@Spartan322 Spartan322 enabled auto-merge June 19, 2026 02:21
@Spartan322 Spartan322 added this pull request to the merge queue Jun 19, 2026
Merged via the queue into master with commit 30d55c3 Jun 19, 2026
9 checks passed
@Spartan322 Spartan322 deleted the fix/action-build-cache branch June 19, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working meta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants