Skip to content

Commit 37da379

Browse files
committed
EZP-32364: Add bare output option for manual use
1 parent da89134 commit 37da379

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

main.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def generate_header(repo_name, previous_tag, current_tag):
5353

5454

5555
def main():
56+
bare_output = os.getenv('INPUT_BARE', False)
57+
5658
current_tag = os.environ["INPUT_CURRENTTAG"]
5759
previous_tag = os.environ["INPUT_PREVIOUSTAG"]
5860

@@ -75,7 +77,10 @@ def main():
7577
# This is why we invoke prepare_output(): replace all \n with %0A
7678
messages = header + "\n".join(map(str, messages_data))
7779

78-
print(f"::set-output name=changelog::{prepare_output(messages)}")
80+
if bare_output:
81+
print(messages)
82+
else:
83+
print(f"::set-output name=changelog::{prepare_output(messages)}")
7984

8085

8186
if __name__ == "__main__":

0 commit comments

Comments
 (0)