diff --git a/.github/workflows/GitHub520.yml b/.github/workflows/GitHub520.yml index 965643fc5..ae3417238 100644 --- a/.github/workflows/GitHub520.yml +++ b/.github/workflows/GitHub520.yml @@ -24,8 +24,8 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + sudo python -m pip install --upgrade pip + if [ -f requirements.txt ]; then sudo pip install -r requirements.txt; fi - name: update readme env: gitee_token: ${{ secrets.GITEE_TOKEN }} @@ -33,7 +33,7 @@ jobs: gitee_gist_file_name: ${{ secrets.GITEE_GIST_FILE_NAME }} run: | # fetch new ip content and update readme file - python fetch_ips.py + sudo python fetch_ips.py - name: commit id: commit run: | diff --git a/fetch_ips.py b/fetch_ips.py index 033c443b6..6cb4114c8 100644 --- a/fetch_ips.py +++ b/fetch_ips.py @@ -150,4 +150,4 @@ def main(verbose=False) -> None: if __name__ == '__main__': - main() + main(True)