This commit is contained in:
Igor Pecovnik
2022-06-11 23:40:24 +02:00
parent 7c89257a3e
commit 5b3b0e2425

View File

@@ -70,10 +70,12 @@ jobs:
id: list_dirs
run: |
echo ${{ inputs.variant }}
CHUNK=${{ inputs.variant }}
LINE=$(echo $CHUNK | cut -d":" -f1)
BOARD=$(echo $LINE | cut -d"_" -f1)
echo ::set-output name=release::$(for x in $(grep -rw build/config/distributions/*/ -e 'supported' | cut -d"/" -f4); do echo $x; done|jq -cnR '[inputs | select(length>0)]' | jq)
echo ::set-output name=desktop::$(for x in $(find -L build/config/desktop/*/environments/*/config* -name packages 2>/dev/null | cut -d"/" -f6 | sort | uniq); do echo $x; done|jq -cnR '[inputs | select(length>0)]' | jq)
[[ $BOARD == desktop* ]] && echo ::set-output name=desktop::$(for x in $(find -L build/config/desktop/*/environments/*/config* -name packages 2>/dev/null | cut -d"/" -f6 | sort | uniq); do echo $x; done|jq -cnR '[inputs | select(length>0)]' | jq)
#echo ::set-output name=variant::$(for x in $(echo "cli_1 cli_2"); do echo $x; done|jq -cnR '[inputs | select(length>0)]' | jq)
MATRIX="seq -w 01 10"
#echo ::set-output name=release::$(for x in $(eval $MATRIX); do echo $x; done|jq -cnR '[inputs | select(length>0)]' | jq)