aptible / aptible-deploy-action

Github action to deploy
MIT License
11 stars 8 forks source link

Provide a graceful fallback for git metadata retrieval #28

Closed eabruzzese closed 7 months ago

eabruzzese commented 7 months ago

This PR fixes an issue where the action would fail if the user has not checked out their code prior to initiating the deployment.

If the repo has not been checked out, the git commands would fail with:

fatal: not a git repository (or any of the parent directories): .git

This PR hides the error and falls back to empty strings for values that can't be retrieved.