Skip to content

Commit 961054e

Browse files
committed
fix: set DOCS_VERSION only for tag builds to preserve dev fallback
Addresses review comment: on workflow_dispatch runs github.ref_name is the branch name not a tag
1 parent 724a6ca commit 961054e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: pnpm build
3333
working-directory: website
3434
env:
35-
DOCS_VERSION: ${{ github.ref_name }}
35+
DOCS_VERSION: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
3636

3737
- uses: actions/upload-pages-artifact@v4
3838
with:

0 commit comments

Comments
 (0)