Skip to content

Commit 1b6f8c9

Browse files
committed
Revert entrypoint
1 parent c8df186 commit 1b6f8c9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

check-links.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ def build_exclusion_list():
131131
exclusion_list[filename][url] = item
132132
new_items.append({url: item})
133133
with open("exclude_links.json", "w") as outfile:
134-
json.dump(exclusion_list, outfile)
134+
json.dump(exclusion_list, outfile, indent=2)
135135
return new_items
136136

137137

138138
new_items = build_exclusion_list()
139139
if len(new_items):
140140
exit_code = 1
141-
for item in new_items:
142-
print(item)
141+
# for item in new_items:
142+
# print(item)
143143

144144
# sys.exit(exit_code)
145145
os.environ["EXIT_CODE"] = str(exit_code)

entrypoint.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -e
44
cd $GITHUB_WORKSPACE
55

66
set +e
7-
# OUTPUT=$(python /check-links.py)
8-
python /check-links.py
9-
SUCCESS=$EXIT_CODE
10-
# echo "$OUTPUT"
7+
OUTPUT=$(python /check-links.py)
8+
# python /check-links.py
9+
SUCCESS=$?
10+
echo "$OUTPUT"
1111
set -e
1212

1313
exit $SUCCESS

0 commit comments

Comments
 (0)