Skip to content

Commit 199db05

Browse files
committed
fix: Ensure directory associated with build and publish step are identical
Removes hard-coded use of "slicer-Slicer" and supports building documentation with project like "Slicer/Slicer-CI-Testing" or "jcfr/Slicer".
1 parent 8a5f7b0 commit 199db05

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/doxygen-build-and-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,21 @@ jobs:
112112
- name: Generate Documentation
113113
id: generate
114114
run: |
115-
WARNING_LOG_FILE=/tmp/Slicer-Slicer-$SLICER_REPO_BRANCH-build/Utilities/Doxygen/UserDoxygenWarnings.txt
115+
WARNING_LOG_FILE=/tmp/${SLICER_REPO_NAME//\//-}-$SLICER_REPO_BRANCH-build/Utilities/Doxygen/UserDoxygenWarnings.txt
116+
echo "WARNING_LOG_FILE [$WARNING_LOG_FILE]"
117+
116118
mkdir -p $(dirname $WARNING_LOG_FILE)
117119
118120
slicer-apidocs-builder \
119121
--skip-publish \
120122
--slicer-repo-dir $(pwd)/Slicer \
123+
--slicer-repo-name ${SLICER_REPO_NAME} \
121124
--slicer-repo-branch "$SLICER_REPO_BRANCH" \
122125
--slicer-repo-tag "${SLICER_REPO_TAG}" 2> >(tee $WARNING_LOG_FILE >&2)
123126
124127
echo "warning_log_file=$WARNING_LOG_FILE" >> $GITHUB_OUTPUT
125128
env:
129+
SLICER_REPO_NAME: ${{ steps.collect_inputs.outputs.slicer_repository }}
126130
SLICER_REPO_BRANCH: ${{ steps.determine.outputs.slicer_repo_branch }}
127131
SLICER_REPO_TAG: ${{ steps.determine.outputs.slicer_repo_tag }}
128132

0 commit comments

Comments
 (0)