From 801823434715e45aa48743a38182d33b33675d02 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Fri, 25 Aug 2023 12:31:19 +0200 Subject: [PATCH 1/3] Improve documentation regarding dependencies cachin --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6dafed1f9..52a5510a1 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ The `cache` input is optional, and caching is turned on by default. The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of the cache key. Use `cache-dependency-path` input for cases when multiple dependency files are used, or they are located -in different subdirectories. +in different subdirectories. Wildcards also supported. If some problem that prevents success caching happens then the action issues the warning in the log and continues the execution of the pipeline. @@ -172,7 +172,11 @@ steps: with: go-version: '1.17' check-latest: true - cache-dependency-path: subdir/go.sum + cache-dependency-path: | + subdir/go.sum + tools/go.sum + # cache-dependency-path: "**/*.sum" + - run: go run hello.go ``` From 317c6617fa9e4e67f1e5e20ad8bc98bf298a0f8f Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Mon, 28 Aug 2023 12:47:43 +0200 Subject: [PATCH 2/3] Replace `wildcards` term with `globs`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52a5510a1..4500fe568 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ The `cache` input is optional, and caching is turned on by default. The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of the cache key. Use `cache-dependency-path` input for cases when multiple dependency files are used, or they are located -in different subdirectories. Wildcards also supported. +in different subdirectories. Globs also supported. If some problem that prevents success caching happens then the action issues the warning in the log and continues the execution of the pipeline. From d45ebba0ce181dc5604aaf69ce5a0bdcbd3b1807 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Tue, 29 Aug 2023 15:43:02 +0200 Subject: [PATCH 3/3] Rephrase sentence Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4500fe568..525820ae5 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ The `cache` input is optional, and caching is turned on by default. The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of the cache key. Use `cache-dependency-path` input for cases when multiple dependency files are used, or they are located -in different subdirectories. Globs also supported. +in different subdirectories. The input supports glob patterns. If some problem that prevents success caching happens then the action issues the warning in the log and continues the execution of the pipeline.