From 7b32b13ef0a618a2875462b236a94bd1cea4efdf Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Fri, 10 May 2024 22:17:28 +0100 Subject: [PATCH] Update action.yml --- action.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 001089e..aa4eb62 100644 --- a/action.yml +++ b/action.yml @@ -14,11 +14,20 @@ inputs: runs: using: 'composite' steps: - - name: Install k3sup + - if: inputs.cache == 'true' + id: cache-k3sup + uses: actions/cache@v4 + with: + path: | + /usr/local/bin/k3sup + key: ${{ runner.os }}-${{ runner.arch }}-k3sup + + - if: ${{ steps.cache-k3sup.outputs.cache-hit != 'true' }} + name: Install k3sup shell: bash run: | curl -sLS https://get.k3sup.dev | sudo -E sh - + - name: Install k3s and merge into kubeconfig shell: bash run: |