From 6abec973f5af28c846bd6532cef645d69778a58c Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 31 Oct 2019 17:25:35 +0100 Subject: [PATCH] Add Go modules example --- examples.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/examples.md b/examples.md index 91f71b5..f816952 100644 --- a/examples.md +++ b/examples.md @@ -95,4 +95,15 @@ uses: actions/cache@preview key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gem- -``` \ No newline at end of file +``` + +## Go - Modules + +```yaml +- uses: actions/cache@preview + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- +```