|
@@ -19,12 +19,17 @@ if grep --quiet 'requirements-dev-frozen.txt' "$files_changed_upstream" || grep
|
|
|
EOF
|
|
|
|
|
|
if [[ "$SENTRY_POST_MERGE_AUTO_UPDATE" ]]; then
|
|
|
+ if [ -f .venv/bin/devenv ]; then
|
|
|
+ DEVENV=.venv/bin/devenv
|
|
|
+ else
|
|
|
+ DEVENV=devenv
|
|
|
+ fi
|
|
|
echo "${yellow}Automatically running devenv sync because SENTRY_POST_MERGE_AUTO_UPDATE is set.${reset}"
|
|
|
- if ! command -v devenv >/dev/null 2>&1; then
|
|
|
+ if ! command -v "$DEVENV" >/dev/null 2>&1; then
|
|
|
echo "devenv not found! install: https://github.com/getsentry/devenv#install"
|
|
|
exit 1
|
|
|
fi
|
|
|
- devenv sync
|
|
|
+ "$DEVENV" sync
|
|
|
else
|
|
|
echo "${yellow}If you want devenv sync to be executed automatically after pulling code, you can export the SENTRY_POST_MERGE_AUTO_UPDATE variable.${reset}"
|
|
|
fi
|