From aa6358691974b9f1880aecfbb5bc1d96cfb28506 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Tue, 24 Oct 2023 10:39:34 -0300 Subject: [PATCH] Fix site matrix Signed-off-by: Marcos Candeia --- .github/workflows/deco-deploy.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deco-deploy.yaml b/.github/workflows/deco-deploy.yaml index 59b0d918..0511f05a 100644 --- a/.github/workflows/deco-deploy.yaml +++ b/.github/workflows/deco-deploy.yaml @@ -3,15 +3,23 @@ on: push: branches: [main] pull_request: - branches: main + branches: [main] jobs: + set-vars: + runs-on: ubuntu-latest + outputs: + site-matrix: ${{ steps.set-vars.outputs.site-matrix }} + steps: + - name: Set site matrix + id: set-vars + shell: bash + run: | + echo "site-matrix=${{ vars.SITES || github.event.repository.name }}" >> $GITHUB_OUTPUT deploy: - env: - SITES: ${{ vars.SITES || github.event.repository.name }} strategy: matrix: - site: [${{ env.SITES }}] + site: fromJson(${{ jobs.set-vars.outputs.site-matrix }})) name: Deploy runs-on: ubuntu-latest