测试hosts.yaml.off
This commit is contained in:
25
.github/workflows/测试hosts.yaml.off
vendored
Normal file
25
.github/workflows/测试hosts.yaml.off
vendored
Normal 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
|
Reference in New Issue
Block a user