diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c7573e..c426d3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/tools/build-aur.sh b/tools/build-aur.sh index 40ef093..ec7aab2 100755 --- a/tools/build-aur.sh +++ b/tools/build-aur.sh @@ -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'