From 0e71a59b89ddd271d8b1d50193aad5d2be1b6915 Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Sun, 24 Jul 2022 20:44:24 +0800 Subject: [PATCH] Chore: GitHub build --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93538b5..16d3598 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: cp Country.mmdb.zip geosite.dat.zip dashboard.zip bin/arm32v7/resources version=$(git describe --tags --always) - core_version=$(curl -sSL https://github.com/yaling888/clash/releases/latest | grep -o -E "windows-amd64-v\d{1,3}\.\d{1,3}\.\d{1,6}" | head -1 | cut -d'-' -f3) + core_version=$(curl -sSL https://github.com/yaling888/clash/releases/latest | grep -oE 'windows-amd64-v[0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?' | head -1 | cut -d'-' -f3) curl -L -o bin/amd64/core/clash-plus-pro-windows-amd64-$core_version.zip https://github.com/yaling888/clash/releases/download/$core_version/clash-plus-pro-windows-amd64-$core_version.zip curl -L -o bin/amd64/core/clash-plus-pro-windows-amd64-v3-$core_version.zip https://github.com/yaling888/clash/releases/download/$core_version/clash-plus-pro-windows-amd64-v3-$core_version.zip