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 - name: Build ArchLinux Package
uses: countstarlight/arch-makepkg-action@master uses: countstarlight/arch-makepkg-action@master
env:
BUILD_VERSION: ${{ steps.tag.outputs.tag }}
with: with:
repos: > repos: >
archlinuxcn=https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch 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=${VERSION_DATA[0]}
TARGET_VERSION_MD5=${VERSION_DATA[1]} TARGET_VERSION_MD5=${VERSION_DATA[1]}
echo "BUILD_VERSION: $BUILD_VERSION"
if [ -n "$1" ];then if [ -n "$1" ];then
export BUILD_VERSION=$1 export BUILD_VERSION=$1
fi fi
if [ -z "$BUILD_VERSION" ];then if [ -z "$BUILD_VERSION" ];then
export BUILD_VERSION='continuous' export BUILD_VERSION='continuous'
fi fi
echo "BUILD_VERSION: $BUILD_VERSION"
# 及时构建修订版本号为0 # 及时构建修订版本号为0
if [ "$BUILD_VERSION" == "continuous" ];then if [ "$BUILD_VERSION" == "continuous" ];then
pkgrel='0' pkgrel='0'