fix: BUILD_VERSION

This commit is contained in:
msojocs 2022-03-07 12:17:15 +08:00
parent 2e6c7bcb18
commit e3107ae5cb
2 changed files with 4 additions and 1 deletions

View File

@ -211,6 +211,8 @@ jobs:
- name: Build ArchLinux Package
uses: countstarlight/arch-makepkg-action@master
env:
BUILD_VERSION: ${{ steps.tag.outputs.tag }}
with:
repos: >
archlinuxcn=https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

View File

@ -16,13 +16,14 @@ VERSION_DATA=(${VERSION_DATA//,/ })
TARGET_VERSION=${VERSION_DATA[0]}
TARGET_VERSION_MD5=${VERSION_DATA[1]}
echo "BUILD_VERSION: $BUILD_VERSION"
if [ -n "$1" ];then
export BUILD_VERSION=$1
fi
if [ -z "$BUILD_VERSION" ];then
export BUILD_VERSION='continuous'
fi
echo "BUILD_VERSION: $BUILD_VERSION"
# 及时构建修订版本号为0
if [ "$BUILD_VERSION" == "continuous" ];then
pkgrel='0'