From 8e12f700ee5b46380efe78db2f77a7e128d45afb Mon Sep 17 00:00:00 2001 From: Taras <9948629+taraspos@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:59:30 +0000 Subject: [PATCH] go sum path --- tools/amplify-preview/action.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/amplify-preview/action.yaml b/tools/amplify-preview/action.yaml index c23e865..44eb656 100644 --- a/tools/amplify-preview/action.yaml +++ b/tools/amplify-preview/action.yaml @@ -22,7 +22,10 @@ runs: run: | # It seems like `setup-go` can't use for cache files outside of ${{ github.workspace }} mkdir -p ${{ github.workspace }}/.tmp/actions/cache/amplify-preview + go_sum_path=${{ github.workspace }}/.tmp/actions/cache/amplify-preview/go.sum cp ${{ github.action_path }}/go.sum ${{ github.workspace }}/.tmp/actions/cache/amplify-preview/ + echo "go_sum_path=${go_sum_path}" >> $GITHUB_OUTPUT + id: cache_workaround - name: Extract branch name shell: bash @@ -32,7 +35,7 @@ runs: - uses: actions/setup-go@v5 with: go-version-file: ${{ github.action_path }}/go.mod - cache-dependency-path: ${{ github.workspace }}/.tmp/actions/cache/amplify-preview/go.sum + cache-dependency-path: ${{ steps.cache_workaround.outputs.go_sum_path }} - name: Amplify Preview env: