If an error calling GitHub ocurred the job would stop after merging the HEAD branch and continue to deploy. Implement two measures to prevent this:
- If the repository update job fails, do not proceed with code deployment.
- Do not make changes to the repository before calling GitHub.