Skip to content

Commit

Permalink
go sum path
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos authored Dec 18, 2024
1 parent 27a8b42 commit 8e12f70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/amplify-preview/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 8e12f70

Please sign in to comment.