mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-11-01 03:16:58 +03:00
Log format unification
This commit is contained in:
1 parent
19cdbd9d6f
commit
86191badf4
5 files changed
+10
-9
No files matched your search
@@ -5,7 +5,7 @@ import urllib.request as request
|
||||
url = os.environ["LOG_URL"]
|
||||
path_answer = ".github/scripts/answers"
|
||||
|
||||
for index in range(0,3):
|
||||
for _ in range(0,3):
|
||||
try:
|
||||
with request.urlopen(url,timeout=30.0) as r:
|
||||
log_bytes = r.read()
|
||||
@@ -62,4 +62,4 @@ else:
|
||||
if cfproxy_end is True:
|
||||
print(str(path_answer + "/default.md"))
|
||||
else:
|
||||
print(str(path_answer + "/no_cfproxy.md"))
|
||||
print(str(path_answer + "/no_cfproxy.md"))
|
||||
@@ -34,7 +34,6 @@ jobs:
|
||||
python-version: "3.14"
|
||||
|
||||
- name: Clone folder
|
||||
if: steps.log.outputs.found == 'true'
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
@@ -57,4 +56,4 @@ jobs:
|
||||
uses: peter-evans/create-or-update-comment@v5
|
||||
with:
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body-path: ${{ steps.log.outputs.found == 'true' && steps.comment.outputs.com || '.github/scripts/answers/default.md' }}
|
||||
body-path: ${{ steps.log.outputs.found == 'true' && steps.comment.outputs.com || '.github/scripts/answers/default.md' }}
|
||||
Reference in new issue
Block a user