daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 321 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # merge master changes into branch
  2. git -c "user.name=Circle CI" -c "user.email=example@example.com" pull --no-edit --no-ff origin refs/heads/master
  3.  
  4. # Get changed directories, assuming each dir is an app, you could also do a for loop after to check for certain files which define those directories as apps, e.g. if [ -f "$APP/app.json" ]
  5. CHANGED_APPS=$(git diff --name-status master..$(git symbolic-ref --short HEAD) | awk '{print $2}' | xargs basename)
  6.  
  7. # run builds for $CHANGED_APPS
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top