From e7431f5aeac2ef8cd2f032c3631eb221e5b25c65 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Tue, 19 Apr 2022 20:51:26 +0530 Subject: [PATCH] fixup(ci): do not lint all packages when `%ci:no-build` is added to HEAD commit --- .github/workflows/packages.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index ba24d04ff..e73b2d500 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -168,7 +168,9 @@ jobs: fi done - ./scripts/lint-packages.sh $package_recipes + if [ ! -z "$package_recipes" ]; then + ./scripts/lint-packages.sh $package_recipes + fi - name: Build packages run: | @@ -181,7 +183,9 @@ jobs: fi done - ./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} $packages + if [ ! -z "$packages" ]; then + ./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} $packages + fi - name: Generate build artifacts if: always()