Skip to content

Instantly share code, notes, and snippets.

@fbatroni
Forked from devonhk/.bash
Created October 14, 2021 22:05
Show Gist options
  • Save fbatroni/5b140daa8778f88566a5c0e0aed93bf8 to your computer and use it in GitHub Desktop.
Save fbatroni/5b140daa8778f88566a5c0e0aed93bf8 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