diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 95cc08a1..1af11c6e 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 @@ -34,8 +34,7 @@ jobs: - 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 . - name: Update run: |