Bug Fix: Address git clone Error in Deployment Workflows#61
Merged
Conversation
Why these changes are being introduced: The last fix was an incomplete fix since I assumed that the runner environment was transient. But, with a self-hosted runner, the file/folder structure remains in place after each run. That resulted in the `git clone` step failing the second time the action ran since there were already files in the target directory. How this addresses that need: * Add an `rm` step at the start of each of the three deployment workflows to remove the "repo" directory before the `git clone` command runs to the pull the latest commit into the folder Side effects of this change: None. Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/IN-1327
matt-bernhardt
approved these changes
Jun 25, 2025
matt-bernhardt
left a comment
Member
There was a problem hiding this comment.
I was able to run the dev workflow successfully (as it looks like you did too), and this seems to address the problem we saw earlier in the workflow. ![]()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Developer
git clonecommand is emptyTickets affected
Version (see config/theme.ini)
deploy.
Documentation
Accessibility
(link in the Pull Request details above).
Stakeholder approval
Dependencies
Additional context needed to review
E.g., if the PR includes updated dependencies and/or data
migration, or how to confirm the feature is working.
Code Reviewer
Code
added technical debt.
Documentation
(not just this pull request message).