Mute linting errors when running against master branch (#8977)

* Mute errors when running on master branch

* One config, with conditional statement

* improve names
This commit is contained in:
Sebastian Spaink 2021-03-11 15:48:16 -06:00 committed by GitHub
parent b263c1fedf
commit 21ca31c481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -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