File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 24
24
# Ignoring the status assigned to the file
25
25
diff_filtered += file + ' '
26
26
27
- # If we will at some point add paths to in diff_filter_path
28
- # we'll have to remove '/'
29
- env_var = 'CHANGED_' + diff_filter_path .upper ()
30
- set_var = env_var + "=" + diff_filtered
31
-
32
- with open (env_file , 'a' ) as file :
33
- file .write (set_var )
27
+ if diff_filtered != '' :
28
+ # If we will at some point add paths to in diff_filter_path
29
+ # we'll have to remove '/'
30
+ env_var = 'CHANGED_' + diff_filter_path .upper ()
31
+ set_var = env_var + "=" + diff_filtered
32
+
33
+ with open (env_file , 'a' ) as file :
34
+ file .write (set_var )
Original file line number Diff line number Diff line change 42
42
echo "git diff --no-renames --name-status ${GITHUB_BASE_REF}..HEAD"
43
43
export CHANGED=$(git diff --no-renames --name-status origin/${GITHUB_BASE_REF}..HEAD)
44
44
echo $CHANGED
45
- #echo "CHANGED=${CHANGED}" >> $GITHUB_ENV
46
45
python .github/workflows/scripts/filter_git_diff.py
47
46
- name : Are there changed files
47
+ if : env.TEST
48
48
run : |
49
49
echo $CHANGED_EASYSTACKS
50
50
# - name: Mount EESSI CernVM-FS pilot repository
You can’t perform that action at this time.
0 commit comments