mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-20 05:52:24 +00:00
Update update-dependencies.yml
This commit is contained in:
parent
5feb3de8bd
commit
5868662792
1 changed files with 11 additions and 8 deletions
15
.github/workflows/update-dependencies.yml
vendored
15
.github/workflows/update-dependencies.yml
vendored
|
@ -25,16 +25,19 @@ jobs:
|
||||||
|
|
||||||
- name: Update dependencies
|
- name: Update dependencies
|
||||||
run: |
|
run: |
|
||||||
go get -u $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all | grep -v 'gvisor.dev/gvisor')
|
# Обновляем все зависимости, кроме gvisor
|
||||||
|
go list -m -u all | awk '{print $1}' | grep -v '^gvisor.dev/gvisor$' | xargs go get -u
|
||||||
|
|
||||||
|
# Принудительно обновляем github.com/xtls/xray-core до последней версии
|
||||||
|
go get github.com/xtls/xray-core@latest
|
||||||
|
|
||||||
|
# Убираем неиспользуемые зависимости и обновляем файлы
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
- name: Check for changes
|
- name: Check for changes
|
||||||
|
id: check_changes
|
||||||
run: |
|
run: |
|
||||||
if ! git diff --exit-code go.mod go.sum; then
|
git diff --quiet go.mod go.sum || echo "changes=true" >> $GITHUB_ENV
|
||||||
echo "changes=true" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "changes=false" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
if: env.changes == 'true'
|
if: env.changes == 'true'
|
||||||
|
|
Loading…
Reference in a new issue