mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-13 23:47:10 +00:00
11 lines
295 B
Bash
Executable file
11 lines
295 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Creates a matrix of roles testable by Molecule for GitHub Actions to use
|
|
|
|
for f in ./roles/*; do
|
|
if [[ -d "$f/molecule" ]]; then
|
|
test_matrix="${test_matrix} $f"
|
|
fi
|
|
done
|
|
|
|
echo "matrix=$(echo $test_matrix | jq -R -s -c 'sub("\n"; " ") | split(" ")[:-1]')" >> $GITHUB_OUTPUT
|