Skip to content

Commit 1cac20d

Browse files
committed
Fix docs build when branch names contain a /
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 24084c5 commit 1cac20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ jobs:
9595
shell: bash
9696
run: |
9797
if [[ ${{ github.ref_name }} == *"/merge" ]]; then
98-
echo "AVM_DOCS_NAME=${{github.event.pull_request.base.ref}}" >> "$GITHUB_ENV";
98+
echo "AVM_DOCS_NAME=${{ github.event.pull_request.base.ref }}" | tr '/' '-' >> "$GITHUB_ENV";
9999
else
100-
echo "AVM_DOCS_NAME=${{ github.ref_name }}" >> "$GITHUB_ENV";
100+
echo "AVM_DOCS_NAME=${{ github.ref_name }}" | tr '/' '-' >> "$GITHUB_ENV";
101101
fi
102102
103103
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)