Skip to content

Commit ddcb06b

Browse files
authored
ci: exclude upstream action from header check (#493)
1 parent e98dfbc commit ddcb06b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ $(TOOLS_BIN_DIR):
146146
$(TOOLS_BIN_NAMES): $(TOOLS_BIN_DIR) $(TOOLS_MOD_DIR)/go.mod
147147
cd $(TOOLS_MOD_DIR) && $(GOCMD) build -o $@ -trimpath $(filter %/$(notdir $@),$(TOOLS_PKG_NAMES))
148148

149-
# postinstall.sh, preinstall.sh, and preremove.sh have OTel headers which would be overwritten were they not excluded.
150-
HEADER_GEN_FILES=$(shell find $(SRC_ROOT)/. -type f \( -name '*.go' -o -name '*.js' -o -name '*.sh' \) ! -name 'pre*' ! -name 'post*')
149+
# Exclude files we adopted from upstream which would be overwritten were they not excluded.
150+
HEADER_GEN_FILES=$(shell find $(SRC_ROOT)/. \
151+
-type f \( -name '*.go' -o -name '*.js' -o -name '*.sh' \) \
152+
! -name 'preinstall.sh' ! -name 'postinstall.sh' ! -name 'preremove.sh' \
153+
! -name 'free-disk-space.sh')
151154
NOTICE_OUTPUT?=THIRD_PARTY_NOTICES.md
152155
FIRST_COMMIT_HASH=6451f322bfe1e62962d3d87b50d785de8048e865
153156

0 commit comments

Comments
 (0)