From 2d1011694c1bffa4abfad836175d9b5a9f367ccf Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sun, 22 Oct 2023 21:06:05 +0800 Subject: [PATCH] only go mod tidy in update-dependencies.yaml --- .github/workflows/update-dependencies.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-dependencies.yaml b/.github/workflows/update-dependencies.yaml index e92fa11a..af8835de 100644 --- a/.github/workflows/update-dependencies.yaml +++ b/.github/workflows/update-dependencies.yaml @@ -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