Contributing GitHub Workflows: Best Practices Prefer creating script files (.sh, .py), it makes local testing easier; If the shell code cannot be ran locally (e.g., deeply depends on GitHub Workflows), it's acceptable to not put the script outside the workflow.