Skip to content

Commit db8d985

Browse files
committed
shellz
1 parent cc7e344 commit db8d985

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 10 additions & 4 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
@@ -37,7 +43,7 @@ jobs:
3743
run: pip3 install -r requirements.txt
3844

3945
- name: Copy deployment.yml into place
40-
run: cp .github/workflows/deployment_yaml/${{ matrix.deployment_yaml }}.yml source/data/deployment.yml
46+
run: cp .github/workflows/deployment_yaml/${{ matrix.deployment_yaml }} source/data/deployment.yml
4147
if: matrix.deployment_yaml != '__default__'
4248

4349
- name: Build HTML

0 commit comments

Comments
 (0)