Skip to content

Commit 73c1038

Browse files
committed
do not hardcode prefix
1 parent 8f6d8fb commit 73c1038

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,19 @@ jobs:
3333
name: github-pages
3434
url: ${{steps.deployment.outputs.page_url}}
3535
steps:
36+
- # Output setting example
37+
- id: repo-basename
38+
run: |
39+
echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT
40+
- shell: bash
3641
- uses: actions/checkout@v4
3742
- name: Setup Pages
3843
id: pages
3944
uses: actions/[email protected]
4045
- name: Build documentation
41-
uses: elastic/docs-builder@main
46+
uses: ${{ github.repository }}@main
4247
with:
43-
prefix: "docs-builder"
48+
prefix: ${{ steps.repo-basename.outputs.value }}
4449
- name: Upload artifact
4550
uses: actions/[email protected]
4651
with:

0 commit comments

Comments
 (0)