If you look here https://developer.wordpress.org/reference/hooks/post_row_actions/, the second argument for the post_row_actions
filter is a post object, so you should be able to do :
function remove_quick_edit($actions, $post)
{
$post_id = $post->ID;
$post_type = $post->post_type;
if($_GET['post_type'] == 'form-enquiry')
{
unset($actions['inline hide-if-no-js']);
}
$actions['reply'] = '<a href="#">Reply</a>';
//return $actions;
echo '<pre>'; print_r($actions); echo '</pre>';
}
add_filter('post_row_actions', 'remove_quick_edit', 10, 2);