Skip to content

Commit

Permalink
Fix site matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
  • Loading branch information
mcandeia committed Oct 24, 2023
1 parent 5fa3ded commit aa63586
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deco-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aa63586

Please sign in to comment.