~仅在tar.gz包时变更版本号

This commit is contained in:
juewuy
2026-01-02 10:13:13 +08:00
parent 4b12ae7a28
commit 7e51c8bec0
2 changed files with 2 additions and 2 deletions

View File

@@ -234,7 +234,7 @@ jobs:
mkdir -p ./bin/${crashcore} mkdir -p ./bin/${crashcore}
mv -f ./tmp/clash-linux-* ./bin/${crashcore}/ mv -f ./tmp/clash-linux-* ./bin/${crashcore}/
rm -fr ./tmp rm -fr ./tmp
sed -i "s/${crashcore}_v=.*/${crashcore}_v=${VERSION}/" ./bin/version [ "${{ inputs.tag6 }}" = tar.gz ] && sed -i "s/${crashcore}_v=.*/${crashcore}_v=${VERSION}/" ./bin/version
git config --global user.email "github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]"
git add . && git commit -m "更新${crashcore}内核至${VERSION}" || exit 0 git add . && git commit -m "更新${crashcore}内核至${VERSION}" || exit 0
git push git push

View File

@@ -255,7 +255,7 @@ jobs:
mkdir -p ./bin/${crashcore} mkdir -p ./bin/${crashcore}
mv -f ./tmp/singbox-linux-* ./bin/${crashcore}/ mv -f ./tmp/singbox-linux-* ./bin/${crashcore}/
rm -fr ./tmp rm -fr ./tmp
sed -i "s/${crashcore}_v=.*/${crashcore}_v=${VERSION}/" ./bin/version [ "${{ inputs.tag6 }}" = tar.gz ] && sed -i "s/${crashcore}_v=.*/${crashcore}_v=${VERSION}/" ./bin/version
git config --global user.email "github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]"
git add . && git commit -m "更新${crashcore}内核至${VERSION}" || exit 0 git add . && git commit -m "更新${crashcore}内核至${VERSION}" || exit 0
git push git push