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
5cb8c376cd
commit
0e5b94f745
1 changed files with 5 additions and 5 deletions
10
.github/workflows/update-dependencies.yml
vendored
10
.github/workflows/update-dependencies.yml
vendored
|
@ -1,10 +1,8 @@
|
|||
name: Update Go Dependencies
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 1' # Запуск каждую неделю в понедельник в 00:00 UTC
|
||||
workflow_dispatch: # Возможность ручного запуска
|
||||
|
||||
permissions:
|
||||
contents: write # Явное указание разрешений
|
||||
jobs:
|
||||
|
@ -54,13 +52,15 @@ jobs:
|
|||
xargs -r go get -u
|
||||
|
||||
echo "Specifically updating xray-core to latest release..."
|
||||
# Получаем последний тег релиза и обновляем xray-core до него
|
||||
# Получаем последний тег релиза
|
||||
LATEST_RELEASE=$(curl -s https://api.github.com/repos/xtls/xray-core/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||
go get github.com/xtls/xray-core@$LATEST_RELEASE
|
||||
|
||||
# Обновляем xray-core с учетом мажорной версии
|
||||
go get github.com/xtls/xray-core/v25@$LATEST_RELEASE
|
||||
|
||||
# Проверяем, какую версию получили
|
||||
echo "Updated xray-core to:"
|
||||
go list -m github.com/xtls/xray-core
|
||||
go list -m github.com/xtls/xray-core/v25
|
||||
|
||||
# Очистка и проверка
|
||||
go mod tidy
|
||||
|
|
Loading…
Reference in a new issue