mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
Update update-dependencies.yml
This commit is contained in:
parent
19442dff84
commit
a3307f53d9
1 changed files with 9 additions and 2 deletions
11
.github/workflows/update-dependencies.yml
vendored
11
.github/workflows/update-dependencies.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue