1.0.1
Wydanie WGTools-Extended / release (push) Successful in 10s

This commit is contained in:
asminme committed 2026-10-30 00:44:56 +01:00
1 parent affe28ad71
commit db262c6607
9 files changed
+29 -302

No files matched your search

+2 -2
View File
@@ -23,9 +23,9 @@ def main() -> None:
repo = os.environ['GITHUB_REPOSITORY']
if not re.fullmatch(r'[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+', repo):
raise ValueError('Nieprawidłowa nazwa repozytorium')
token = os.environ['GITEA_RELEASE_TOKEN']
token = os.environ.get('RELEASE_TOKEN', '')
if not token:
raise ValueError('Brakuje sekretu GITEA_RELEASE_TOKEN')
raise ValueError('Brakuje sekretu lub zmiennej RELEASE_TOKEN')
api = f'{server}/api/v1/repos/{repo}/releases'
def request(url: str, method: str, data: bytes, content_type: str) -> dict: