Просмотр исходного кода

only go mod tidy in update-dependencies.yaml

wwqgtxx 2 лет назад
Родитель
Сommit
2d1011694c
1 измененных файлов с 2 добавлено и 8 удалено
  1. 2 8
      .github/workflows/update-dependencies.yaml

+ 2 - 8
.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