build(CI): fix syntax error for actions

This commit is contained in:
zhanghongtong 2021-03-03 21:41:09 +08:00
parent 7a915efaa2
commit f391e039c9
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- user: get_version - name: get_version
run: | run: |
version=$(echo ${{ github.ref }} | sed -r "s ^refs/heads/|^refs/tags/(.*) \1 g") version=$(echo ${{ github.ref }} | sed -r "s ^refs/heads/|^refs/tags/(.*) \1 g")
echo "VERSION=$verison" >> $GITHUB_ENV echo "VERSION=$verison" >> $GITHUB_ENV