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:
4949 uses : actions/checkout@v4
5050 with :
5151 persist-credentials : false
52-
5352 - name : Check if commit contains files that should be ignored
5453 run : |
5554 git clone --depth 1 https://github.com/github/gitignore.git
56-
5755 rm gitignore/Global/ModelSim.gitignore
5856 rm gitignore/Global/Images.gitignore
5957 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"
6363 if [[ "$IGNORED_FILES" != "" ]]; then
6464 echo -e "::error::Please remove these files:\n$IGNORED_FILES" | sed -z 's/\n/%0A/g'
6565 exit 1
You can’t perform that action at this time.
0 commit comments