X-Git-Url: http://git.purplebirdman.com/git-webhooks.git/blobdiff_plain/af9ea57143fa7abeb188a0f598dfbcf6136d367a..refs/heads/master:/update-godot-builder.sh diff --git a/update-godot-builder.sh b/update-godot-builder.sh index d85754c..86d62cc 100755 --- a/update-godot-builder.sh +++ b/update-godot-builder.sh @@ -24,10 +24,11 @@ then fi # --- Upon branch update, build gitweb snapshot URI -# TODO: get project name based on current directory name -project_name=wolf-seeking-sheep -snapshot_uri=https://git.purplebirdman.com/${project_name}.git/snapshot/${newrev}.tar.gz -echo "Snapshot URI - https://git.purplebirdman.com/${project_name}.git/snapshot/${newrev}.tar.gz" +git_project_name=$(pwd | grep -o '[a-zA-Z0-9-]*\.git') +echo "Git project name - $git_project_name" + +snapshot_uri=https://git.purplebirdman.com/${git_project_name}/snapshot/${newrev}.tar.gz +echo "Snapshot URI - $snapshot_uri" # --- Now send request to builder service godot_builder_uri=https://godot.purplebirdman.com/hook/make-build-request.lua