Skip to content

Commit

Permalink
更新 update_hosts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Nov 13, 2024
1 parent d879e08 commit 9904d0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/update_hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# 添加详细输出以便调试
pip install -r requirements.txt -v
# 验证安装
pip list | grep dns
sudo pip install -r requirements.txt
echo "Installed packages:"
sudo pip list
- name: Run hosts update script
run: |
# 添加详细输出以便调试
echo "Python version and location:"
python -V
which python
sudo -E python SetHosts.py --verbose
echo "Running script with sudo..."
sudo python SetHosts.py --verbose
- name: Commit and push changes
env:
Expand Down

0 comments on commit 9904d0c

Please sign in to comment.