Skip to content

Commit e1f79a2

Browse files
committed
fix: commonly ignored files
1 parent e43ff47 commit e1f79a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)