I would be wary of app functions too, the cheap ones have a similar timeout. GitHub actions have a long timeout like 6 hours or something so that would be my bet, but perhaps the machine sizes could be a bottleneck on some loads.
Perhaps an azure function that triggers a container instance? I don’t know enough about container instances to evaluate if that is a good idea.
In conclusion: either GitHub actions or a tiny VM because simple is better.