mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-12-19 12:37:49 +08:00
debug
This commit is contained in:
parent
7e44bd779a
commit
451e0031bd
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y git python3 python3-pip zsh curl inetutils-ping
|
||||
sudo apt remove -y vim
|
||||
sudo apt remove -y vim tmux
|
||||
sudo pip3 install requests
|
||||
|
||||
- name: checkout repo
|
||||
@ -22,6 +22,9 @@ jobs:
|
||||
pwd
|
||||
./install.sh
|
||||
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: antigen build
|
||||
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
||||
run: |
|
||||
@ -43,16 +46,16 @@ jobs:
|
||||
dfs cd
|
||||
pwd
|
||||
dfs version
|
||||
dfs log 1
|
||||
l
|
||||
dogo
|
||||
tools/common.sh get_os_type
|
||||
tools/common.sh get_linux_dist
|
||||
bash -x tools/common.sh post_log 1 2 3
|
||||
|
||||
- name: check scripts and alias (no ret check)
|
||||
shell: /bin/zsh -il {0}
|
||||
run: |
|
||||
dfs log 1
|
||||
bash -x tools/common.sh post_log 1 2 3
|
||||
p114 -c 4
|
||||
return 0
|
||||
|
||||
|
||||
@ -63,10 +63,11 @@ if __name__ == "__main__":
|
||||
logging.info("200 ok")
|
||||
exit(0)
|
||||
elif resp.status_code == 403:
|
||||
logging.error("403 forbidden")
|
||||
logging.warn("403 forbidden")
|
||||
logging.info("you may need to register your hostname and uuid")
|
||||
logging.info(f"hostname: {hostname}, uuid: {uuid}")
|
||||
exit(0)
|
||||
else:
|
||||
logging.error("unknown error ")
|
||||
logging.error(f"{resp.status_code}: {resp.text}")
|
||||
logging.info(f"hostname: {hostname}, uuid: {uuid}")
|
||||
exit(1)
|
||||
exit(1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user