Skip to content

Commit 6b598ed

Browse files
committed
clean-up filter script
Signed-off-by: laraPPr <lara.peeters@ugent.be>
1 parent 77f515e commit 6b598ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/scripts/filter_git_diff.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# At the moment this script will only filter out the easystack files
22
# Next step could be to filter out other subpaths
3-
# by using the GITHUB action envitonment variables and argsparse.
3+
# by using the GITHUB action environment variables and argsparse.
44

55
# Can also distiguish between modified, added, ... files
66
# That information is in the string that is generated by git diff
@@ -26,9 +26,9 @@
2626
diff_filtered += file + ' '
2727

2828
if diff_filtered != '':
29-
# If we will at some point add paths to in diff_filter_path
30-
# we'll have to remove '/'
31-
# Name of the env_var can than also change based on the file or path
29+
# Todo: Can only handle 1 level paths now
30+
# I we want to pass multi-level paths this will need to be updated
31+
# Name of the env_var can change based on the file or path
3232
env_var = 'CHANGED_' + diff_filter_path.upper()
3333
set_var = env_var + "=" + diff_filtered
3434

0 commit comments

Comments
 (0)