Can an Action workflow block codespace creation? #121139
-
Select Topic AreaQuestion BodySummary:Is there a setting where I can block folks from creating a Codespace on a repo until a GitHub action completes? More InfoI have a repo that is a template, I want to create an Action that runs some customization against the repo that is created from this template. This repo/template also has a devcontainer/codespace setting where the user can test the repo in a codespace. However, the repo won't be ready to test against until that workflow finishes. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there @christianh814! While there is no native feature to do something like that, there are a few options you could use as workarounds. One option is to create the template repo without the This would NOT block codespace creation until the action completes (aka you could create your own config). That said, perhaps it makes more sense to have the default README.md indicate that the repo isn't ready for codespace creation yet, and have the Action update the README.md file when it runs? There's also the I hope this helps get you started! |
Beta Was this translation helpful? Give feedback.
Hey there @christianh814!
While there is no native feature to do something like that, there are a few options you could use as workarounds. One option is to create the template repo without the
.devcontainer
file in it (or at least not in the correct place of the repo). Then, your "get everything ready" action could have it do all the stuff it is doing now, and then create/move the.devontainer
files into a state that ia needed to support starting a codespace.This would NOT block codespace creation until the action completes (aka you could create your own config).
That said, perhaps it makes more sense to have the default README.md indicate that the repo isn't ready for codespace creatio…