Skip to content

Commit

Permalink
Add more test workflow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
danudey committed Jul 4, 2024
1 parent 03abdbd commit ee70448
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions check_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@

def get_env(env_name):
value = os.getenv(env_name)
print(f"ENV {env_name} = {value}", file=sys.stdout)
# print(f"ENV {env_name} = {value}", file=sys.stdout)
return value

def fail(message):
with open(GITHUB_RESULT_PATH, "a+") as output_file:
output_file.write(message + "\n")
print(f'FAIL: {message}', file=sys.stderr)
# print(f'FAIL: {message}', file=sys.stderr)
print(f'::error::{message}')

def info(message):
with open(GITHUB_RESULT_PATH, "a+") as output_file:
output_file.write(message + "\n")
print(f'INFO: {message}', file=sys.stderr)
# print(f'INFO: {message}', file=sys.stderr)
print(f'::notice::{message}')


Expand Down Expand Up @@ -53,6 +53,6 @@ def info(message):
fail('No release notes found in PR body')
sys.exit(-1)
else:
info('no release note required')
info('No release note required')

sys.exit(0)

0 comments on commit ee70448

Please sign in to comment.