Skip to content

Commit 7b32b13

Browse files
authored
Update action.yml
1 parent 4c46acb commit 7b32b13

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

action.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,20 @@ inputs:
1414
runs:
1515
using: 'composite'
1616
steps:
17-
- name: Install k3sup
17+
- if: inputs.cache == 'true'
18+
id: cache-k3sup
19+
uses: actions/cache@v4
20+
with:
21+
path: |
22+
/usr/local/bin/k3sup
23+
key: ${{ runner.os }}-${{ runner.arch }}-k3sup
24+
25+
- if: ${{ steps.cache-k3sup.outputs.cache-hit != 'true' }}
26+
name: Install k3sup
1827
shell: bash
1928
run: |
2029
curl -sLS https://get.k3sup.dev | sudo -E sh
21-
30+
2231
- name: Install k3s and merge into kubeconfig
2332
shell: bash
2433
run: |

0 commit comments

Comments
 (0)