Skip to content

Commit b910f60

Browse files
committed
4
1 parent c522e1c commit b910f60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,13 @@ jobs:
195195
196196
- name: Set variables
197197
run: |
198-
echo "VERSION=${GITHUB_REF_NAME,,}-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
198+
VERSION=${GITHUB_REF_NAME,,}-$(git rev-parse --short HEAD)
199199
PackageVersion="$(curl -s "https://api.github.com/repos/MetaCubeX/mihomo/releases/latest" | jq -r '.tag_name' | sed 's/v//g' | awk -F '.' '{$NF = $NF + 1; print}' OFS='.').${VERSION/-/.}"
200200
if [ -n "${{ github.event.inputs.version }}" ]; then
201-
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
202-
PackageVersion="${VERSION#v}"
201+
VERSION=${{ github.event.inputs.version }}
202+
PackageVersion=${VERSION#v}" >> $GITHUB_ENV
203203
fi
204+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
204205
echo "PackageVersion=${PackageVersion}" >> $GITHUB_ENV
205206
206207
echo "BUILDTIME=$(date)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)