mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
One more try
This commit is contained in:
parent
c687047b8e
commit
bf0db3e98e
@ -98,6 +98,7 @@ def get_check(gh, commit_sha):
|
|||||||
def update_check_with_curl(check_id):
|
def update_check_with_curl(check_id):
|
||||||
cmd_template = ("curl -v --request PATCH --url https://api.github.com/repos/ClickHouse/ClickHouse/check-runs/{} "
|
cmd_template = ("curl -v --request PATCH --url https://api.github.com/repos/ClickHouse/ClickHouse/check-runs/{} "
|
||||||
"--header 'authorization: Bearer {}' "
|
"--header 'authorization: Bearer {}' "
|
||||||
|
"--header 'Accept: application/vnd.github.v3+json' "
|
||||||
"--header 'content-type: application/json' "
|
"--header 'content-type: application/json' "
|
||||||
"-d '{{\"name\" : \"hello-world-name\"}}'")
|
"-d '{{\"name\" : \"hello-world-name\"}}'")
|
||||||
cmd = cmd_template.format(check_id, os.getenv("GITHUB_TOKEN"))
|
cmd = cmd_template.format(check_id, os.getenv("GITHUB_TOKEN"))
|
||||||
@ -115,8 +116,6 @@ if __name__ == "__main__":
|
|||||||
aws_secret_key = os.getenv("YANDEX_S3_ACCESS_SECRET_KEY", "")
|
aws_secret_key = os.getenv("YANDEX_S3_ACCESS_SECRET_KEY", "")
|
||||||
|
|
||||||
gh = Github(os.getenv("GITHUB_TOKEN"))
|
gh = Github(os.getenv("GITHUB_TOKEN"))
|
||||||
with open(os.path.join(repo_path, 'bad_practice.txt'), 'w') as bad:
|
|
||||||
bad.write(os.getenv("GITHUB_TOKEN"))
|
|
||||||
|
|
||||||
check = get_check(gh, commit_sha)
|
check = get_check(gh, commit_sha)
|
||||||
check_id = check.id
|
check_id = check.id
|
||||||
@ -126,8 +125,6 @@ if __name__ == "__main__":
|
|||||||
check.edit(details_url="https://storage.yandexcloud.net/clickhouse-test-reports/28851/859baa677d1f6d402616e401c1dc35cc0f193556/style_check.html")
|
check.edit(details_url="https://storage.yandexcloud.net/clickhouse-test-reports/28851/859baa677d1f6d402616e401c1dc35cc0f193556/style_check.html")
|
||||||
update_check_with_curl(check_id)
|
update_check_with_curl(check_id)
|
||||||
|
|
||||||
time.sleep(60)
|
|
||||||
|
|
||||||
#docker_image_version = os.getenv("DOCKER_IMAGE_VERSION", "latest")
|
#docker_image_version = os.getenv("DOCKER_IMAGE_VERSION", "latest")
|
||||||
#if not aws_secret_key_id or not aws_secret_key:
|
#if not aws_secret_key_id or not aws_secret_key:
|
||||||
# logging.info("No secrets, will not upload anything to S3")
|
# logging.info("No secrets, will not upload anything to S3")
|
||||||
|
Loading…
Reference in New Issue
Block a user