Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$tag_name = str_replace("refs/tags/","",$json->ref);
$argsment = $tag_name;
if( !empty($json->repository)){
$work_path = $json->repository->git_ssh_url;
$work_path = explode(":", $work_path);
$work_path = explode(".", $work_path[1]);
log_append('work_path: ' . $work_path[0]);
$argsment .= ' ' . $work_path[0];
}
log_append('Launching shell hook script...');
$command = 'sh ' . $hookfile . ' '. $argsment;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.