File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,17 @@ jobs:
49
49
uses : actions/checkout@v4
50
50
with :
51
51
persist-credentials : false
52
-
53
52
- name : Check if commit contains files that should be ignored
54
53
run : |
55
54
git clone --depth 1 https://github.com/github/gitignore.git
56
-
57
55
rm gitignore/Global/ModelSim.gitignore
58
56
rm gitignore/Global/Images.gitignore
59
57
cat gitignore/Node.gitignore gitignore/Global/*.gitignore > all.gitignore
60
-
61
- IGNORED_FILES=$(git ls-files --cached --ignored --exclude-from=all.gitignore)
62
- IGNORED_FILES=$(echo "$IGNORED_FILES" | grep -v 'patches/@codspeed+core+3.1.0.patch')
58
+
59
+ IGNORED_FILES_UNPROCESSED=$(git ls-files --cached --ignored --exclude-from=all.gitignore)
60
+ IGNORED_FILES=$(grep -v -F "patches/@codspeed+core+3.1.0.patch" <<< "$IGNORED_FILES_UNPROCESSED" || true)
61
+
62
+ echo "IGNORED_FILES: $IGNORED_FILES"
63
63
if [[ "$IGNORED_FILES" != "" ]]; then
64
64
echo -e "::error::Please remove these files:\n$IGNORED_FILES" | sed -z 's/\n/%0A/g'
65
65
exit 1
You can’t perform that action at this time.
0 commit comments