Skip to content

Instantly share code, notes, and snippets.

@devonhk
Created January 24, 2020 15:07
Show Gist options
  • Save devonhk/f93075299fc960a2e6124f77c8aa502e to your computer and use it in GitHub Desktop.
Save devonhk/f93075299fc960a2e6124f77c8aa502e to your computer and use it in GitHub Desktop.
detect changed files in mono repo
CHANGED_FOLDERS=$(git diff --name-status $TRAVIS_COMMIT_RANGE -- | awk 'BEGIN {FS="/"} {print $1}' | awk '{print $2}' | uniq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment