Skip to content

Commit f77a114

Browse files
committed
update names
1 parent 10d2269 commit f77a114

File tree

5 files changed

+5
-145
lines changed

5 files changed

+5
-145
lines changed

.github/workflows/custom-action-example.yml

-16
This file was deleted.

.github/workflows/python-publish.yml

-69
This file was deleted.

.github/workflows/svn-checkout.yml

-55
This file was deleted.

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
required: false
1111
default: 'temp-svn-repo'
1212
mode:
13-
description: 'Mode to run the action'
13+
description: 'Mode to operate publish or verify'
1414
required: false
1515
default: 'verify'
1616

src/scripts/config_parser.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
DEFAULT_CHECK_SUM_SCRIPT = "{github_action_path}/src/scripts/checksum_check.sh"
88

99

10-
def set_default_config(config_data):
10+
def set_default_config(config_data: dict):
1111
svn_checker_script = config_data.get("publishers", {}).get("rules", {}).get("svn-check", {}).get("script")
1212
if not svn_checker_script:
1313
config_data["publishers"]["rules"]["svn-check"]["script"] = DEFAULT_SVN_CHECKER_SCRIPT.format(github_action_path=os.environ.get("GITHUB_ACTION_PATH"))
@@ -19,16 +19,16 @@ def set_default_config(config_data):
1919
return config_data
2020

2121

22-
def parse_config(path):
22+
def parse_config(path: str):
2323
with open(path, 'r') as file:
2424
config_data = yaml.safe_load(file)
2525

2626
updated_config_data = set_default_config(config_data)
2727

2828
def set_multiline_output(name, updated_data):
29-
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
29+
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
3030
value = json.dumps(updated_data)
31-
fh.write(f'{name}={value}')
31+
f.write(f'{name}={value}')
3232

3333
set_multiline_output("pub_config", updated_config_data)
3434

0 commit comments

Comments
 (0)