Skip to content

Instantly share code, notes, and snippets.

@vincentchalamon
Created October 18, 2019 07:38
Show Gist options
  • Save vincentchalamon/74f80e1ac9a19365415191225f560345 to your computer and use it in GitHub Desktop.
Save vincentchalamon/74f80e1ac9a19365415191225f560345 to your computer and use it in GitHub Desktop.
Bash command to check a file has been modified in a branch comparing to another
git diff --name-only origin/$CI_COMMIT_REF_NAME $(git merge-base origin/$CI_COMMIT_REF_NAME origin/develop) | grep CHANGELOG.md > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment