Skip to content

Commit 48ad7e8

Browse files
committed
Use cache in build workflow only if use-cached is true
1 parent 2b2925b commit 48ad7e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
version:
2424
required: true
2525
type: string
26-
cache:
26+
use-cached:
2727
required: false
2828
type: boolean
2929
default: false
@@ -42,7 +42,7 @@ on:
4242
version:
4343
required: true
4444
type: string
45-
cache:
45+
use-cached:
4646
required: false
4747
type: boolean
4848
default: false
@@ -133,8 +133,8 @@ jobs:
133133
134134
echo "ARTIFACT_DIR=kernel-artifacts-${SUFFIX}" >> $GITHUB_OUTPUT
135135
136-
# TODO: Control caching with an input argument
137136
- name: Cache kernel image
137+
if: ${{ inputs.use-cached == true }}
138138
id: cache-kernel
139139
uses: actions/cache@v4
140140
with:

0 commit comments

Comments
 (0)