Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
npv2k1 committed Feb 2, 2024
1 parent ee60e81 commit d12d088
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build-dev-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,19 @@ on: # rebuild any PRs and main branch changes
- master

jobs:
prepare:

list-folders:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3

- name: Set matrix for build
id: set-matrix
run: |
FOLDERS=$(ls -d templates/*/)
FOLDERS=${FOLDERS%/} # remove trailing slashes
FOLDERS=${FOLDERS//templates\//} # remove leading 'templates/'
FOLDERS_JSON=$(echo "$FOLDERS" | jq -R -s -c 'split("\n")[:-1]')
echo "FOLDERS_JSON: $FOLDERS_JSON"
echo "::set-output name=matrix::${FOLDERS_JSON}"
- uses: philips-labs/list-folder-action@v1
with:
directory: ./templates

build:
runs-on: ubuntu-latest
strategy:
matrix:
subfolder: ${{fromJson(needs.prepare.outputs.matrix)}}
subfolder: ${{ fromJSON(needs.list-folders.outputs.folders) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit d12d088

Please sign in to comment.