blob: bb51feb0a94ab15bdd5ff83538640579f50e79b0 (
plain)
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
31
|
#!/usr/bin/env python3
"""\
@file post_artifacts.py
@author Nat Goodspeed
@date 2023-08-18
@brief Unpack and post artifacts from a GitHub Actions build
$LicenseInfo:firstyear=2023&license=viewerlgpl$
Copyright (c) 2023, Linden Research, Inc.
$/LicenseInfo$
"""
import github
import json
import os
import sys
class Error(Exception):
pass
def main(*raw_args):
buildstr = os.getenv('BUILD')
build = json.loads(buildstr)
from pprint import pprint
pprint(build)
if __name__ == "__main__":
try:
sys.exit(main(*sys.argv[1:]))
except Error as err:
sys.exit(str(err))
|