mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02:00
CI: Explicitly check environment variable against None
in matrix.py
For consistency with `GITHUB_OUTPUT` at the bottom.
This commit is contained in:
parent
96e03e1a89
commit
e327e41430
2
.github/matrix.py
vendored
2
.github/matrix.py
vendored
@ -29,7 +29,7 @@ def clean_ssl(ssl):
|
|||||||
@functools.lru_cache(5)
|
@functools.lru_cache(5)
|
||||||
def determine_latest_openssl(ssl):
|
def determine_latest_openssl(ssl):
|
||||||
headers = {}
|
headers = {}
|
||||||
if environ.get('GITHUB_TOKEN'):
|
if environ.get('GITHUB_TOKEN') is not None:
|
||||||
headers["Authorization"] = "token {}".format(environ.get('GITHUB_TOKEN'))
|
headers["Authorization"] = "token {}".format(environ.get('GITHUB_TOKEN'))
|
||||||
|
|
||||||
request = urllib.request.Request('https://api.github.com/repos/openssl/openssl/tags', headers=headers)
|
request = urllib.request.Request('https://api.github.com/repos/openssl/openssl/tags', headers=headers)
|
||||||
|
Loading…
Reference in New Issue
Block a user