From 72aad542bdeaa097eccec50031e0c1f3004262e0 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 15 Jul 2024 19:57:44 +0530 Subject: [PATCH] fix: bash substitution does not work in actions contexts --- action.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 066db18..700f36d 100644 --- a/action.yml +++ b/action.yml @@ -46,10 +46,6 @@ runs: manifest_path=$(find ${{ inputs.path }} -maxdepth 1 -name "rokit.toml" -o -name "aftman.toml" -o -name "foreman.toml") echo "::debug::Discovered manifest path: $manifest_path" echo "path=$manifest_path" >> $GITHUB_OUTPUT - - manifest_hash=${{hashFiles(manifest_path)}} - echo "::debug::Computed manifest hash: $manifest_hash" - echo "hash=$manifest_hash" >> $GITHUB_OUTPUT shell: bash - name: Cache binaries @@ -59,7 +55,7 @@ runs: path: | ~/.rokit/bin ~/.rokit/tool-storage - key: ${{ runner.os }}-rokit-${{ steps.manifest.outputs.hash }} + key: ${{ runner.os }}-rokit-${{hashFiles(steps.manifest.outputs.path)}} - name: Install tools run: |