From adaf88e385e94e35cf01d6bf068501b66840b56f Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Thu, 3 Apr 2025 17:02:38 -0700 Subject: [PATCH 1/2] docs: use github workspace in config path --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5dd431da9b..48891dbaa7 100644 --- a/README.md +++ b/README.md @@ -400,7 +400,7 @@ The location of the configuration file can be changed by using `--config=` ```yml uses: golangci/golangci-lint-action@v7 with: - args: --config=/my/path/.golangci.yml --issues-exit-code=0 + args: --config=${{ github.workspace }}/my/path/.golangci.yml --issues-exit-code=0 # ... ``` From 064eebd04cd8b0212f11a4fd5c626cd8bbab58ae Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Fri, 4 Apr 2025 04:17:40 +0200 Subject: [PATCH 2/2] review --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48891dbaa7..43023bc3f5 100644 --- a/README.md +++ b/README.md @@ -400,7 +400,9 @@ The location of the configuration file can be changed by using `--config=` ```yml uses: golangci/golangci-lint-action@v7 with: - args: --config=${{ github.workspace }}/my/path/.golangci.yml --issues-exit-code=0 + # In some rare cases, + # you could have to use `${{ github.workspace }}` as base directory to reference your configuration file. + args: --config=/my/path/.golangci.yml --issues-exit-code=0 # ... ```