测试hosts.yaml.off

This commit is contained in:
严浩
2025-06-18 12:17:17 +08:00
parent bce207f5b4
commit 6655d923eb

25
.github/workflows/测试hosts.yaml.off vendored Normal file
View File

@@ -0,0 +1,25 @@
on:
push:
defaults:
run:
shell: bash
env:
TZ: Asia/Shanghai
jobs:
hostssss-not-changed:
runs-on: ubuntu-latest
steps:
- name: step1
run: |
curl git.yanhao.ren -v
hostssss-changed:
runs-on: ubuntu-latest
steps:
- name: 配置 hosts
run: |
# 158.180.89.16 git.yanhao.ren
echo "158.180.89.16 git.yanhao.ren" | sudo tee -a /etc/hosts
echo "158.180.89.16 git.1-h.cc" | sudo tee -a /etc/hosts
curl https://git.yanhao.ren -v
curl https://git.1-h.cc -v
- uses: actions/checkout@main