From 407650fe3b277d0bd650271c99f80c5b4ce83aa7 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sat, 16 Oct 2021 22:46:41 -0700 Subject: [PATCH] Append cache key directly to env. --- action.yml | 2 +- create_cache_key.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 0c9fded..67ebb1c 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,7 @@ runs: - name: Create Cache Key run: | - ${{ github.action_path }}/create_cache_key.sh "${{ inputs.version }})" ${{ inputs.packages }} >> $GITHUB_ENV + ${{ github.action_path }}/create_cache_key.sh "${{ inputs.version }})" ${{ inputs.packages }} shell: bash - name: Load Package Cache diff --git a/create_cache_key.sh b/create_cache_key.sh index 679c672..9d5c98f 100755 --- a/create_cache_key.sh +++ b/create_cache_key.sh @@ -18,4 +18,4 @@ echo "* Value to hash is '$value'." key=$(echo $value | md5sum | /bin/cut -f1 -d' ') echo "* Value hashed as '$key'." -echo "CACHE_KEY=$key" \ No newline at end of file +echo "CACHE_KEY=$key" >> $GITHUB_ENV \ No newline at end of file