Skip to content

Commit

Permalink
ccc
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Jan 26, 2025
1 parent 5e2117a commit 6dea13e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ jobs:
run: |
./quickget --version
- name: "create dir"
run: |
mkdir -p results
- name: "show supported"
run: |
./quickget | awk 'NR==3,/zorin/' | tr ' ' '\n'
./quickget | awk 'NR==3,/zorin/' | tr ' ' '\n' | tee results/supported.list
- name: "variable"
id: list-supported
run: |
SUPPORTED=$(./quickget | awk 'NR==3,/zorin/' | tr ' ' '\n')
SUPPORTED=$(cat results/supported.list)
echo "supported=$SUPPORTED" >> $GITHUB_OUTPUT
- name: "display supported"
Expand All @@ -64,7 +68,7 @@ jobs:
id: set-matrix
run: |
MATRIX="{\"include\": ["
for os in $supported; do
for os in ${{ steps.list-supported.outputs.supported }}; do
MATRIX+="{\"os\": \"$os\"},"
done
MATRIX="${MATRIX%,}]}"
Expand Down

0 comments on commit 6dea13e

Please sign in to comment.