Actually, having looked at the file, it is much too complicated I'd say - can't we split it into smaller snippets and scripts which are executed in the correct order inside the workflow?
Originally posted by @felixhekhorn in #310 (comment)
The comment originally refers to the release workflow, which arguably is the most complex script.