mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 13:32:24 +00:00
Update update-dependencies.yml
This commit is contained in:
parent
1fd5d7ab3b
commit
a465ccd1f8
1 changed files with 6 additions and 8 deletions
14
.github/workflows/update-dependencies.yml
vendored
14
.github/workflows/update-dependencies.yml
vendored
|
@ -32,8 +32,10 @@ jobs:
|
|||
id: get_latest_release
|
||||
run: |
|
||||
LATEST_TAG=$(curl -s https://api.github.com/repos/XTLS/Xray-core/releases/latest | jq -r .tag_name)
|
||||
echo "Latest Xray-core release: $LATEST_TAG"
|
||||
CLEAN_TAG=${LATEST_TAG#v} # Убираем 'v' в начале
|
||||
echo "Latest Xray-core release: $LATEST_TAG (cleaned: $CLEAN_TAG)"
|
||||
echo "latest_tag=$LATEST_TAG" >> $GITHUB_ENV
|
||||
echo "clean_tag=$CLEAN_TAG" >> $GITHUB_ENV
|
||||
|
||||
- name: Check go.mod and go.sum exist
|
||||
run: |
|
||||
|
@ -60,24 +62,20 @@ jobs:
|
|||
|
||||
echo "Updating standard Go dependencies..."
|
||||
|
||||
# Обновляем стандартные зависимости с исключением gvisor и xray-core
|
||||
go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all | \
|
||||
grep -v 'gvisor.dev/gvisor' | \
|
||||
grep -v 'github.com/xtls/xray-core' | \
|
||||
xargs -r go get -u
|
||||
|
||||
echo "Updating xray-core to latest release: ${{ env.latest_tag }}"
|
||||
go get github.com/xtls/xray-core@${{ env.latest_tag }}
|
||||
|
||||
# Проверяем, какую версию получили
|
||||
echo "Updating xray-core to latest release: ${{ env.clean_tag }}"
|
||||
go get github.com/xtls/xray-core@${{ env.clean_tag }}
|
||||
|
||||
echo "Updated xray-core to:"
|
||||
go list -m github.com/xtls/xray-core
|
||||
|
||||
# Очистка и проверка
|
||||
go mod tidy
|
||||
go mod verify || exit 1
|
||||
|
||||
# Выводим изменения для лога
|
||||
echo "Updated dependencies:"
|
||||
go list -m all
|
||||
|
||||
|
|
Loading…
Reference in a new issue