#! /bin/bash echo "Updating $1 to a new release" cd $1 git fetch --tags latest=$(git describe --tags `git rev-list --tags --max-count=1`) git checkout ${latest} python $WEBHOOK_SCRIPT_DIR/changelog.py $1 $CHANGELOG_DIR/$1.json