From b3714f62f4c3e03324dd5bf42528da87c223835f Mon Sep 17 00:00:00 2001 From: Jingbei Li Date: Sat, 15 Jun 2024 20:25:49 +0800 Subject: [PATCH] fixed workflow --- .github/workflows/update.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 95cc08a1..ba786f1b 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -14,16 +14,16 @@ jobs: run: | sudo apt-get install openssh-client python3-setuptools - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: JinnLynn/genpac path: genpac - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: gfwlist/gfwlist path: gfwlist @@ -33,9 +33,7 @@ jobs: path: . - run: | - cd genpac - sed 's/from collections import Callable/from collections.abc import Callable/g' -i $(grep 'from collections import Callable' . -rIl) - sudo python3 setup.py install + sudo pip install genpac - name: Update run: |