edited proxy envs
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s

This commit is contained in:
luo980 2025-02-18 03:27:57 +08:00
parent 95a161ad42
commit 939d580a1f

View File

@ -9,10 +9,13 @@ jobs:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: export http_proxy=http://172.130.0.24:7890
- run: export https_proxy=http://172.130.0.24:7890
- run: git config --global http.proxy http://172.130.0.24:7890
- run: git config --global https.proxy http://172.130.0.24:7890
- run: |
echo "Setting global proxy in /etc/environment"
echo "http_proxy=http://172.130.0.24:7890" | sudo tee -a /etc/environment
echo "https_proxy=http://172.130.0.24:7890" | sudo tee -a /etc/environment
echo "all_proxy=socks5h://172.130.0.24:7890" | sudo tee -a /etc/environment
source /etc/environment
echo "Proxies configured globally"
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."