Skip to content

Commit

Permalink
build(ci): ignore workflow in Docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Aug 5, 2022
1 parent 50c2061 commit 166e0e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/scripts/distribution/ensure-naming-for-process.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash -eu

FIND_OUTPUT=$(find . -iname '*workflow*' -not -path '.*/node_modules/*' -not -path '.*/target/*' -not -path '.*/.git/*' -not -path '.*/.github/*' -not -path '.*/vendor/*')
FIND_OUTPUT=$(find . -iname '*workflow*' -not -path '.*/node_modules/*' -not -path '.*/target/*' -not -path '.*/.git/*' -not -path '.*/.github/*' -not -path '.*/vendor/*' -not -path '.*/docker/*')

# if grep doesn't find a match it exits with 1, which we ignore as we check the output later
GREP_OUTPUT=$(grep --exclude-dir={.git,node_modules,target,.ci,.github,vendor} -i -P 'workflow(?![-\s]+(?i)engine)' -r . || true)
GREP_OUTPUT=$(grep --exclude-dir={.git,node_modules,target,.ci,.github,vendor,docker} --exclude="Dockerfile" -i -P 'workflow(?![-\s]+(?i)engine)' -r . || true)

if [ -n "${FIND_OUTPUT}" ] || [ -n "${GREP_OUTPUT}" ]; then
echo "Found occurence of workflow in file names or content"
Expand Down

0 comments on commit 166e0e2

Please sign in to comment.