The advantages of using an action is that it reduces boilerplate and repetition from the main ci.yml workflow.