File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -131,15 +131,15 @@ def build_exclusion_list():
131
131
exclusion_list [filename ][url ] = item
132
132
new_items .append ({url : item })
133
133
with open ("exclude_links.json" , "w" ) as outfile :
134
- json .dump (exclusion_list , outfile )
134
+ json .dump (exclusion_list , outfile , indent = 2 )
135
135
return new_items
136
136
137
137
138
138
new_items = build_exclusion_list ()
139
139
if len (new_items ):
140
140
exit_code = 1
141
- for item in new_items :
142
- print (item )
141
+ # for item in new_items:
142
+ # print(item)
143
143
144
144
# sys.exit(exit_code)
145
145
os .environ ["EXIT_CODE" ] = str (exit_code )
Original file line number Diff line number Diff line change 4
4
cd $GITHUB_WORKSPACE
5
5
6
6
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 "
11
11
set -e
12
12
13
13
exit $SUCCESS
You can’t perform that action at this time.
0 commit comments