1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

fix(ci): properly ignore changed generated enums

This commit is contained in:
matejcik 2021-12-17 15:35:05 +01:00 committed by matejcik
parent d2ac4e7a9c
commit 9a9201fe8a

View File

@ -6,11 +6,11 @@ subdirs="core core/embed/boardloader core/embed/bootloader core/embed/bootloader
# $ignored_files is a newline-separated list of patterns for grep
# therefore there must not be empty lines at start or end
ignored_files="core/src/apps/ethereum/networks.py
core/src/apps/ethereum/tokens.py
core/src/trezor/enums/*
core/src/trezor/messages.py
python/src/trezorlib/messages.py"
ignored_files="^core/src/apps/ethereum/networks.py$
^core/src/apps/ethereum/tokens.py$
^core/src/trezor/enums/.*
^core/src/trezor/messages.py$
^python/src/trezorlib/messages.py$"
changed_files=$(mktemp)
trap 'rm -- $changed_files' EXIT
@ -26,7 +26,7 @@ check_feature_branch () {
continue
fi
git show --pretty=format: --name-only "$commit" | grep -vF "$ignored_files" >> "$changed_files"
git show --pretty=format: --name-only "$commit" | grep -v "$ignored_files" >> "$changed_files"
done
for subdir in $subdirs