This commit is contained in:
Igor Pecovnik
2022-06-12 09:39:22 +02:00
parent 6593c44cb6
commit 073afa9fac

View File

@@ -73,7 +73,7 @@ jobs:
# default values
echo ::set-output name=release::$(echo '[]' | jq) || true
echo ::set-output name=variant::$(echo '[]' | jq) || true
echo ::set-output name=desktop::$(echo '[]' | jq) || true
echo ::set-output name=runner::$(echo '[]' | jq) || true
CHUNK=${{ inputs.variant }}
@@ -82,10 +82,12 @@ jobs:
echo "$VAR $ARC"
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) || true
#[[ $VAR == desktop ]] &&
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) || true
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) || true
echo ::set-output name=variant::$(for x in $(echo "cli_1 cli_2"); do echo $x; done|jq -cnR '[inputs | select(length>0)]' | jq) || true
[[ $VAR == cli ]]* && echo ::set-output name=desktop::$(echo '[]' | jq) || true
#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)
#echo ::set-output name=variant::$(for x in $(eval $MATRIX); do echo $x; done|jq -cnR '[inputs | select(length>0)]' | jq)