Add commit_id parsing

This commit is contained in:
Chris Long
2018-03-21 23:21:16 -07:00
parent d75579f46e
commit 11b0da94ba

View File

@@ -11,6 +11,7 @@ jobs:
- run:
name: Check if Packer files were modified
command: |
export COMMIT_ID="$(echo $CIRCLE_COMPARE_URL | cut -d '/' -f 7)"
if [ "$(git diff-tree --no-commit-id --name-only -r $COMMIT_ID | grep -c \"^Packer/\")" -gt 0 ]; then
export PACKER_MODIFIED=1
else
@@ -20,6 +21,7 @@ jobs:
- run:
name: Check if Vagrant files were modified
command: |
export COMMIT_ID="$(echo $CIRCLE_COMPARE_URL | cut -d '/' -f 7)"
if [ "$(git diff-tree --no-commit-id --name-only -r $COMMIT_ID | grep -c \"^Vagrant/\")" -gt 0 ]; then
export VAGRANT_MODIFIED=1
else