Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: retry git pull on error #62

Merged
merged 1 commit into from
Sep 10, 2024
Merged

fix: retry git pull on error #62

merged 1 commit into from
Sep 10, 2024

Conversation

szkiba
Copy link
Collaborator

@szkiba szkiba commented Sep 10, 2024

In the git working directory, the file permissions are changed to make the cache persistent in GitHub action mode. As a consequence, the git pull operation will fail (if permissions have actually been changed).

To fix this, if the pull operation fails, the pull operation is repeated after a forced checkout operation.

@szkiba szkiba requested a review from a team as a code owner September 10, 2024 06:49
@szkiba szkiba requested review from pablochacin and removed request for a team September 10, 2024 06:49
@szkiba szkiba linked an issue Sep 10, 2024 that may be closed by this pull request
@szkiba szkiba removed the request for review from pablochacin September 10, 2024 06:49
@szkiba szkiba merged commit 0940973 into main Sep 10, 2024
5 checks passed
@szkiba szkiba deleted the 61-retry-git-pull-on-error branch September 10, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry git pull on error
1 participant