From 1f3b15276f1e27409d492f7cab8d8b25ab4a0e2c Mon Sep 17 00:00:00 2001 From: Tomoyuki Sakurai Date: Sat, 19 Oct 2024 17:47:07 +0700 Subject: [PATCH] ci: make items in PORTS_TO_BUILD unique --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22212cc..65544a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,7 @@ jobs: for F in ${{ steps.filter.outputs.ports-to-build_files }}; do PORTS_TO_BUILD="${PORTS_TO_BUILD} `echo ${F} | cut -f 1,2 -d '/' | sort -u | grep '/'`" done - PORTS_TO_BUILD=`echo ${PORTS_TO_BUILD} | tr '\n' ' ' | sed -e 's/ $//'` + PORTS_TO_BUILD=`echo ${PORTS_TO_BUILD} | sort -u | tr '\n' ' ' | sed -e 's/ $//'` echo "::notice ::Building ${PORTS_TO_BUILD}" # pass the JSON to other jobs