From 2c2a1c814b734bd337c7c2c8fe11d9516662ef04 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Fri, 26 Aug 2022 00:11:18 +0200 Subject: [PATCH] ci: lint file patterns (#1286) --- .github/workflows/lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0548211cf1..1db7d9eaea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - uses: technote-space/get-diff-action@v6.1.0 with: PATTERNS: | - **/**.go + **/*.go - uses: actions/setup-go@v3 if: env.GIT_DIFF with: @@ -30,7 +30,7 @@ jobs: args: --timeout 8m - name: golangci-lint pricefeeder uses: golangci/golangci-lint-action@v3 - if: env.GIT_DIFF + if: ${{ contains(env.GIT_DIFF, 'price-feeder/') }} with: version: latest working-directory: price-feeder @@ -62,7 +62,7 @@ jobs: - uses: technote-space/get-diff-action@v6 with: PATTERNS: | - **/**.proto + **/*.proto - uses: bufbuild/buf-setup-action@v1 if: env.GIT_DIFF - uses: bufbuild/buf-lint-action@v1