From 5be60c708ec5fcb3a7fe6e940a68c458b5a2e3ca Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sun, 11 Jun 2023 17:25:06 +0200 Subject: [PATCH] docs: improve args examples --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 710202af42..7c147f8686 100644 --- a/README.md +++ b/README.md @@ -23,16 +23,16 @@ Add `.github/workflows/golangci-lint.yml` with the following contents: name: golangci-lint on: push: - tags: - - v* branches: - master - main pull_request: + permissions: contents: read # Optional: allow read access to pull request. Use with `only-new-issues` option. # pull-requests: read + jobs: golangci: name: lint @@ -56,7 +56,7 @@ jobs: # # Note: by default the `.golangci.yml` file should be at the root of the repository. # The location of the configuration file can be changed by using `--config=` - # args: --config=/my/path/.golangci.yml --issues-exit-code=0 + # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0 # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true @@ -83,8 +83,6 @@ If you need to run linters for specific operating systems, you will need to use name: golangci-lint on: push: - tags: - - v* branches: - master - main @@ -122,7 +120,7 @@ jobs: # # Note: by default the `.golangci.yml` file should be at the root of the repository. # The location of the configuration file can be changed by using `--config=` - # args: --config=/my/path/.golangci.yml --issues-exit-code=0 + # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0 # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true