Skip to content

Instantly share code, notes, and snippets.

@nico2che
Created February 26, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nico2che/1b2557dd8357904bbbd5dc268a8a7d78 to your computer and use it in GitHub Desktop.
Save nico2che/1b2557dd8357904bbbd5dc268a8a7d78 to your computer and use it in GitHub Desktop.
- ...
script:
- TO_DEPLOY=$(git diff --name-only $TRAVIS_COMMIT_RANGE | awk -F/ '{ print $1 }' | uniq)
deploy:
- ...
on:
condition: $TO_DEPLOY =~ (folder1|folder2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment