Skip to content

Commit a5f5ad4

Browse files
committed
fix variable parsing
1 parent 4707be8 commit a5f5ad4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
8080
get-branch-name:
8181
runs-on: ubuntu-latest
82+
outputs:
83+
current_branch: ${{ steps.branch-name.outputs.current_branch }}
8284
steps:
8385
- name: Get branch name
8486
id: branch-name
@@ -114,7 +116,7 @@ jobs:
114116
concurrency: ${{ github.workflow }}-${{ github.ref }}
115117
runs-on: ubuntu-latest
116118
env:
117-
VUEPRESS_BASE_URL: ${{ fromJSON('[/${{ needs.get-branch-name.branch-name.outputs.current_branch }}/, "/"]')[github.ref == 'refs/heads/production'] }}
119+
VUEPRESS_BASE_URL: ${{ fromJSON('[format("/${0}/", needs.get-branch-name.outputs.current_branch), "/"]')[github.ref == 'refs/heads/production'] }}
118120
steps:
119121
- name: Checkout
120122
uses: actions/checkout@v4

0 commit comments

Comments
 (0)