Skip to content

Commit 5a7aaa4

Browse files
authored
Merge pull request #4739 from crazy-max/fix-multi-lint
ci: enable multi-platform lint only for upstream repo
2 parents 5f13e53 + dfbc1c5 commit 5a7aaa4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/validate.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@ jobs:
3838
runs-on: ubuntu-22.04
3939
needs:
4040
- prepare
41-
env:
42-
GOLANGCI_LINT_MULTIPLATFORM: 1
4341
strategy:
4442
fail-fast: false
4543
matrix:
4644
target: ${{ fromJson(needs.prepare.outputs.targets) }}
4745
steps:
46+
-
47+
name: Prepare
48+
run: |
49+
if [ "$GITHUB_REPOSITORY" = "moby/buildkit" ]; then
50+
echo "GOLANGCI_LINT_MULTIPLATFORM=1" >> $GITHUB_ENV
51+
fi
4852
-
4953
name: Checkout
5054
uses: actions/checkout@v4

0 commit comments

Comments
 (0)