From a3307f53d91be5a0a259ac1abe13673290f9742b Mon Sep 17 00:00:00 2001 From: civisrom <167646351+civisrom@users.noreply.github.com> Date: Tue, 4 Mar 2025 11:16:16 +0300 Subject: [PATCH] Update update-dependencies.yml --- .github/workflows/update-dependencies.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index edfb8fa5..fab68bc0 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -59,8 +59,15 @@ jobs: grep -v 'github.com/xtls/xray-core' | \ xargs -r go get -u - echo "Specifically updating xray-core to latest commit..." - go get github.com/xtls/xray-core@main + echo "Specifically updating xray-core to latest release tag..." + # Получаем последний релизный тег для xray-core + latest_tag=$(git ls-remote --tags https://github.com/xtls/xray-core | awk -F/ '{print $3}' | grep -v {} | sort -V | tail -n1) + if [ -z "$latest_tag" ]; then + echo "Error: Could not find latest release tag for xray-core" + exit 1 + fi + + go get github.com/xtls/xray-core@$latest_tag # Проверяем, какую версию получили echo "Updated xray-core to:" go list -m github.com/xtls/xray-core