Skip to content

Workflow file for this run

name: Juno (build & deploy all apps)
on:
push:
branches:
- gh-matrix
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# On release creation
# release:
# types: [created]
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "apps/exampleapp"
cancel-in-progress: true
# Default to bash
defaults:
run:
shell: bash
# echo "dirs=$(ls -d ./apps/*/ | jq --raw-input --slurp --compact-output 'split("\n")[:-1]')"
jobs:
collect_apps:
runs-on: [ubuntu-latest]
outputs:
apps: ${{ steps.croll-apps.outputs.apps }}
steps:
- uses: actions/checkout@v4
- id: croll-apps
run: |
echo "dirs=$(ls -d ./apps/*/ | jq --raw-input --slurp --compact-output 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run_test:
needs: collect_apps
runs-on: [ubuntu-latest]
# strategy:
# matrix:
# dir: ${{fromJson(needs.collect_apps.outputs.apps)}}
steps:
- run: echo ${{ matrix.apps }}