fix(github): added missing output in generate-matrix job

This commit is contained in:
Wittano Bonarotti 2024-04-15 21:11:20 +02:00
parent 3b62c82433
commit 8ee514f145
No known key found for this signature in database
GPG Key ID: 81EC1690D9E354CF

View File

@ -22,19 +22,20 @@ jobs:
generate-matrix: generate-matrix:
name: Generate matrix data for build job name: Generate matrix data for build job
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
theme: ${{ steps.gen-matrix.outputs.theme }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Generate matrix - name: Generate matrix
id: gen-matrix
run: | run: |
THEMES=$(ls assets/themes | tr '[:upper:]' '[:lower:]' | sed 's/\./_/g' | jq --raw-input | jq --slurp -c) THEMES=$(ls assets/themes | tr '[:upper:]' '[:lower:]' | sed 's/\./_/g' | jq --raw-input | jq --slurp -c)
echo "theme=$THEMES" >> $GITHUB_OUTPUT
echo "themes=$THEMES" >> $GITHUB_OUTPUT
build: build:
needs: needs: generate-matrix
- generate-matrix
strategy: strategy:
matrix: matrix:
theme: ${{ needs.generate-matrix.outputs.themes }} theme: ${{ fromJSON(needs.generate-matrix.outputs.theme) }}
name: Build Nix name: Build Nix
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: