mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 08:44:28 -05:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Get Examples Matrix Call
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
matrix:
|
|
description: "Matrix"
|
|
value: ${{ jobs.create.outputs.matrix }}
|
|
jobs:
|
|
create:
|
|
name: Create Examples Matrix
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
env:
|
|
# separate examples using "|" (vertical bar) char like "a|b|c".
|
|
# cargo-make should be excluded by default.
|
|
EXCLUDED_EXAMPLES: cargo-make
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- name: Install jq
|
|
run: sudo apt-get install jq
|
|
- name: Set Matrix
|
|
id: set-matrix
|
|
run: |
|
|
examples=$(ls -1d examples/*/ |
|
|
grep -vE "($EXCLUDED_EXAMPLES)" |
|
|
sed 's/\/$//' |
|
|
jq -R -s -c 'split("\n")[:-1]')
|
|
echo "Example Directories: $examples"
|
|
echo "matrix={\"directory\":$examples}" >> "$GITHUB_OUTPUT"
|
|
- name: Print Location Info
|
|
run: |
|
|
echo "Workspace: ${{ github.workspace }}"
|
|
pwd
|
|
ls | sort -u
|