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

install/main.js: check existence of asdfDir and remove it before git clone #352

Closed
wants to merge 1 commit into from

Conversation

jslusher
Copy link

Occasionally a self-hosted runner does not get restarted and refreshed. When this happens, if there is an asdf/install action in the workflow, it will fail because git clone will fail if the directory exists. I made an attempt with this PR to have the function check for the existence of asdfDir and remove it if it exists prior to running the git clone, which should avoid the problem. My JS is very shaky, so if there's a better way to do what I'm trying to do here, please let me know.

@jthegedus
Copy link
Contributor

The option skip_install was just added in #536 and will solve this problem for you.

@jthegedus jthegedus closed this Mar 15, 2023
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.

2 participants