refactor duplicated code in github workflows into common action
refactor duplicated code in github workflows into common action