Skip to content

Commit

Permalink
Minor cleanup in misc/pin_github_actions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Dec 22, 2024
1 parent baedcd0 commit 86046d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/pin_github_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import json
import argparse
from pathlib import Path
from functools import lru_cache
from functools import cache
from urllib.request import urlopen


Expand All @@ -31,7 +31,7 @@ def get_files(pathes):
yield path


@lru_cache(maxsize=None)
@cache
def resolve_tag(repo, tag):
url = f"https://api.github.com/repos/{repo}/git/ref/tags/{tag}"
with urlopen(url) as f:
Expand Down

0 comments on commit 86046d9

Please sign in to comment.