From cff64ba445832f46430072d73174e84c9e4f6cad Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Tue, 11 Jun 2024 17:49:05 +0200 Subject: [PATCH] chore: add cache hit condition to luarocks installs --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 33e25ed..f906385 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,7 @@ runs: steps: - uses: actions/cache@v3 + id: cache-luarocks with: path: | ~/.luarocks @@ -46,10 +47,12 @@ runs: - name: Setup LuaRocks uses: hishamhm/gh-actions-luarocks@master + if: steps.cache-luarocks.outputs.cache-hit != 'true' with: luarocksVersion: ${{ inputs.luarocks_version }} - name: Install busted and nlua + if: steps.cache-luarocks.outputs.cache-hit != 'true' run: | luarocks install busted --local ${{ inputs.bused_version }} luarocks install nlua --local