When you deploy a Ruby on Rails application, and you have database changes, you need to migrate those, I can imagine that for certain other tech stacks "After deploy commands" are also common.
What do you think about a plugin that looks for a after_deploy.sh file in the /app directory, and if that file is present, run it. So you can have all kind of after_deploy code in there.
I see it working kinda the same as the HEALTH_CHECK file.
Looking forward to hear what you think.