[action] add generic order action. Backport for 0.12

(cherry picked from commit 4b75c077bdb7caabea69ffb87a147eb3fc605737)