From dfbc1c5b5dcf51c5b3e4a2952f5f7fe5ba941d95 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:04:32 +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 085ccb2aa553..14eb3efab16e 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -38,13 +38,17 @@ jobs: runs-on: ubuntu-22.04 needs: - prepare - env: - GOLANGCI_LINT_MULTIPLATFORM: 1 strategy: fail-fast: false matrix: target: ${{ fromJson(needs.prepare.outputs.targets) }} steps: + - + name: Prepare + run: | + if [ "$GITHUB_REPOSITORY" = "moby/buildkit" ]; then + echo "GOLANGCI_LINT_MULTIPLATFORM=1" >> $GITHUB_ENV + fi - name: Checkout uses: actions/checkout@v4