ae0ad6560b
* Package release tarball on rocm tags and add a MAINTAINERS guide to outline release procedure
Signed-off-by: coleramos425 <colramos@amd.com>
* Apply linting feedback
Signed-off-by: coleramos425 <colramos@amd.com>
* Update links in MAINTAINERS for new branches
Signed-off-by: coleramos425 <colramos@amd.com>
* Update MAINTAINERS.md for changelog formatting
Signed-off-by: coleramos425 <colramos@amd.com>
* Update Omniperf ver checker to allow tags with rocm- prefix
Signed-off-by: coleramos425 <colramos@amd.com>
* Add step to packaging workflow to upload release tarball to release
Signed-off-by: coleramos425 <colramos@amd.com>
* Synax change for release name in packaging action
Signed-off-by: coleramos425 <colramos@amd.com>
* Update MAINTAINERS for instuctions on ROCm releases
Signed-off-by: coleramos425 <colramos@amd.com>
* Update softprops pluvin to v2 and remove release name
Removing the release name enables us to modify an existing release with the matching tag
Signed-off-by: coleramos425 <colramos@amd.com>
* Remove draft option on softprops plugin
Signed-off-by: coleramos425 <colramos@amd.com>
---------
Signed-off-by: coleramos425 <colramos@amd.com>
[ROCm/rocprofiler-compute commit: 0d15023f69]
37 行
881 B
Python
可執行檔
37 行
881 B
Python
可執行檔
#!/usr/bin/env python3
|
|
#
|
|
# Support utility to check VERSION file against a tagname. Used in
|
|
# release pipeline.
|
|
|
|
import argparse
|
|
import os
|
|
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--tag", type=str, required=True, help="tagname to check")
|
|
args = parser.parse_args()
|
|
|
|
execPath = os.path.dirname(__file__)
|
|
with open(execPath + "/../VERSION") as f:
|
|
repoVer = f.readline().strip()
|
|
|
|
repoCheck = "v" + repoVer
|
|
tag = args.tag
|
|
|
|
print("Current repository version = %s" % repoVer)
|
|
print("--> tagname = %s" % tag)
|
|
|
|
|
|
if repoCheck == tag:
|
|
print("OK: exact match")
|
|
exit(0)
|
|
elif tag.startswith(repoCheck + "-"):
|
|
print("OK: allowed match with extra delimiter")
|
|
exit(0)
|
|
elif tag.startswith("rocm-"):
|
|
print("OK: allowed match with 'rocm-' prefix")
|
|
exit(0)
|
|
else:
|
|
print("FAIL: no match - double check top-level VERSION file")
|
|
exit(1)
|