Skip to content

Commit 42e0f03

Browse files
committed
fix: 修复版本替换失败
1 parent 32c98c1 commit 42e0f03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
id: get_version
2020
run: |
2121
TAG=$(basename ${GITHUB_REF})
22-
VERSION=${TAG/v/}
2322
echo "TAG=$TAG" >> $GITHUB_OUTPUT
2423
wget https://raw.githubusercontent.com/nineaiyu/xadmin-installer/master/quick_start.sh
24+
VERSION=${TAG/v/}
2525
sed -i "s@VERSION=.*@VERSION=v${VERSION}@g" quick_start.sh
2626
2727
- name: Create Release
@@ -40,7 +40,7 @@ jobs:
4040
if: startsWith(github.ref, 'refs/tags/')
4141
with:
4242
draft: true
43-
files:
43+
files: |
4444
quick_start.sh
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)