only go mod tidy in update-dependencies.yaml

This commit is contained in:
wwqgtxx 2023-10-22 21:06:05 +08:00 committed by GitHub
parent c3da619dcf
commit 2d1011694c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,12 +5,6 @@ on:
- core-updated
workflow_dispatch:
env:
# go dependencies that should be fixed to certain version
PACKAGES_DO_NOT_UPGRADE: >-
github.com/Dreamacro/clash@v1.7.1
github.com/Kr328/tun2socket@v0.0.0-20220414050025-d07c78d06d34
jobs:
update-dependencies:
runs-on: ubuntu-latest
@ -48,12 +42,12 @@ jobs:
- name: Update Foss Gomod
run: |
cd ${{ github.workspace }}/core/src/foss/golang/
go get -u ${{ env.PACKAGES_DO_NOT_UPGRADE }}
go mod tidy
- name: Update Main Gomod
run: |
cd ${{ github.workspace }}/core/src/main/golang/native/
go get -u -d ${{ env.PACKAGES_DO_NOT_UPGRADE }}
go mod tidy
- name: Create Pull Request
id: cpr