ci: add log line for cache clearing
This commit is contained in:
parent
442dba84e3
commit
d613fbdee9
|
@ -29,14 +29,14 @@ def delete_cache_request(key, id):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
args = sys.argv
|
args = sys.argv
|
||||||
env = os.environ
|
env = os.environ
|
||||||
|
|
||||||
key = env["GITHUB_TOKEN"]
|
key = env["GITHUB_TOKEN"]
|
||||||
pr_id = args[1]
|
pr_id = int(args[1])
|
||||||
ref = "refs/pull/{}/merge".format(pr_id)
|
ref = "refs/pull/{}/merge".format(pr_id)
|
||||||
|
|
||||||
|
print("Clearing any caches generated by PR {}".format(pr_id))
|
||||||
with urlopen(cache_list_request(key)) as response:
|
with urlopen(cache_list_request(key)) as response:
|
||||||
response = json.load(response)
|
response = json.load(response)
|
||||||
caches = response["actions_caches"]
|
caches = response["actions_caches"]
|
||||||
|
|
Loading…
Reference in New Issue