Skip to content

Commit fbe311e

Browse files
committed
shellz
1 parent cc7e344 commit fbe311e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ jobs:
1313
outputs:
1414
matrix: ${{ steps.set-matrix.outputs.matrix }}
1515
steps:
16-
# TODO:
17-
# if ${{ github.repository }} == 'stackhpc/openstack-admin-guide'
16+
- uses: actions/checkout@v3
17+
1818
- name: Generate test matrix
1919
id: set-matrix
2020
run: |
21-
echo "matrix={\"deployment_yaml\":[\"__default__\",\"disable-ceph\",\"enable-ironic\",\"enable-ironic-no-cleaning-or-physnet\"]}" >> $GITHUB_OUTPUT
21+
echo -n "matrix={\"deployment_yaml\": [\"__default__\"" >> $GITHUB_OUTPUT
22+
if [[ ${{ github.repository }} == 'stackhpc/openstack-admin-guide' ]]; then
23+
for yaml in $(ls .github/workflows/deployment_yaml/); do
24+
echo -n ", \"$yaml\"" >> $GITHUB_OUTPUT
25+
done
26+
fi
27+
echo "]}" >> $GITHUB_OUTPUT
2228
2329
build:
2430
name: Build OpenStack admin guide

0 commit comments

Comments
 (0)