From 91b71df7cb47e7de767b8989c21fe6e8f1953980 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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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: |