forked from noah978/AltSourceParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_ipa_upload.py
More file actions
30 lines (25 loc) · 957 Bytes
/
example_ipa_upload.py
File metadata and controls
30 lines (25 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
Project: altparse
Module: tests
Created Date: 05 Dec 2022
Author: Noah Keck
:------------------------------------------------------------------------------:
MIT License
Copyright (c) 2022
:------------------------------------------------------------------------------:
"""
import os
import sys
import logging
# required for testing in an environment without altparse installed as a package
sys.path.insert(0, './src')
sys.path.insert(1, './src/altparse')
from altparse.ipautil import get_or_create_github_release
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
try:
g_token = os.environ["GITHUB_TOKEN"]
g_repo_id = 132412341 # enter the github release by its API id
g_release = get_or_create_github_release(g_token, repo_id=g_repo_id) # gets the github release as a Python obj
except KeyError as err:
logging.error(f"Could not find GitHub Token.")
logging.error(f"{type(err).__name__}: {str(err)}")