From 21ca31c48182cd640d086c815de6baf8c4684c77 Mon Sep 17 00:00:00 2001 From: Sebastian Spaink <3441183+sspaink@users.noreply.github.com> Date: Thu, 11 Mar 2021 15:48:16 -0600 Subject: [PATCH] Mute linting errors when running against master branch (#8977) * Mute errors when running on master branch * One config, with conditional statement * improve names --- .github/workflows/golangci-lint.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e4154182649a0..651b838fda060 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,7 +11,8 @@ on: - cron: '0 16 * * *' jobs: golangci-pr: - name: lint + if: github.ref != 'refs/heads/master' + name: lint-pr-changes runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -21,3 +22,15 @@ jobs: version: v1.38 only-new-issues: true args: --timeout=5m0s + golangci-master: + if: github.ref == 'refs/heads/master' + name: lint-master-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.38 + only-new-issues: true + args: --timeout=5m0s --issues-exit-code=0