Skip to content

Commit e3107ae

Browse files
committed
fix: BUILD_VERSION
1 parent 2e6c7bc commit e3107ae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ jobs:
211211
212212
- name: Build ArchLinux Package
213213
uses: countstarlight/arch-makepkg-action@master
214+
env:
215+
BUILD_VERSION: ${{ steps.tag.outputs.tag }}
214216
with:
215217
repos: >
216218
archlinuxcn=https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

tools/build-aur.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ VERSION_DATA=(${VERSION_DATA//,/ })
1616
TARGET_VERSION=${VERSION_DATA[0]}
1717
TARGET_VERSION_MD5=${VERSION_DATA[1]}
1818

19+
echo "BUILD_VERSION: $BUILD_VERSION"
1920
if [ -n "$1" ];then
2021
export BUILD_VERSION=$1
2122
fi
2223
if [ -z "$BUILD_VERSION" ];then
2324
export BUILD_VERSION='continuous'
2425
fi
25-
echo "BUILD_VERSION: $BUILD_VERSION"
26+
2627
# 及时构建修订版本号为0
2728
if [ "$BUILD_VERSION" == "continuous" ];then
2829
pkgrel='0'

0 commit comments

Comments
 (0)