Skip to content

Commit 14acf1e

Browse files
authored
Update python-trackerlist.yml
1 parent cbd3240 commit 14acf1e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/python-trackerlist.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@ jobs:
1717
uses: actions/checkout@v3
1818

1919
- name: Set up Python
20-
uses: actions/checkout@v3
20+
uses: actions/setup-python@v3 # 修正使用 setup-python 而非 checkout
2121
with:
2222
python-version: '3.11'
2323

2424
- name: Install dependencies
2525
run: |
26-
python -m pip install --upgrade pip --break-system-packages
26+
python -m venv venv
27+
source venv/bin/activate
28+
pip install --upgrade pip
2729
pip install requests
2830
29-
- name: Run script to trackerslist
31+
- name: Run script to update trackerslist
3032
run: |
33+
source venv/bin/activate
3134
python trackerslist.py
3235
3336
- name: Commit and push changes

0 commit comments

Comments
 (0)