Skip to content

Fix cache-step condition in openvic-dl-build/action.yml#114

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

Fix cache-step condition in openvic-dl-build/action.yml#114
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:09
@Spartan322 Spartan322 added the bug Something isn't working label 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 52dd61b to 6726ae5 Compare June 19, 2026 02:14
@Spartan322 Spartan322 changed the title Fix cache-step condition in action.yml Fix cache-step condition in openvic-dl-build/action.yml Jun 19, 2026
@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 4f7522c Jun 19, 2026
15 checks passed
@Spartan322 Spartan322 deleted the fix/action-build-cache branch June 19, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants