From 5c69fa267f8b4cbf337c4db85879b4b59d49539d Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 14 Mar 2024 10:39:50 +0100 Subject: [PATCH] ci: enable multi-platform lint only for upstream repo Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/validate.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 63aa48752a9..78a02c27448 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -19,8 +19,6 @@ on: jobs: validate: runs-on: ubuntu-22.04 - env: - GOLANGCI_LINT_MULTIPLATFORM: 1 strategy: fail-fast: false matrix: @@ -30,6 +28,12 @@ jobs: - validate-docs - validate-generated-files steps: + - + name: Prepare + run: | + if [ "$GITHUB_REPOSITORY" = "docker/buildx" ]; then + echo "GOLANGCI_LINT_MULTIPLATFORM=1" >> $GITHUB_ENV + fi - name: Checkout uses: actions/checkout@v4