nrwl/nx-set-shas

Set SHA of last successful workflow run regardless of event type

lucasknode opened this issue · 0 comments

Is there a way to run this action so that it will output the SHA of the last successful workflow run regardless of the event_type? Right now in the action if you don't specify last-successful-event, it defaults to "push". We have a workflow in our CI/CD pipeline that is triggered on push and workflow_dispatch. In this case we really just want the SHA of the last time the workflow completed successfully. If we were to filter on either event type we could get an incorrect SHA if the last successful workflow run was done via the other event.