-
Notifications
You must be signed in to change notification settings - Fork 0
Add alert to manually download YAML file instead #11
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
Conversation
If the user clicks the link, will they be provided with the expected YAML code? To access the code, will clicking the link be the only way to access the generated code? |
If the user clicks the link, they will be asked to download a "matlab.yml" file which contains the expected YAML code. They can then put that file in their repository manually. |
What do you think about this text? If the generated workflow does not automatically appear in your workflow editor, manually download the workflow file (matlab.yml) and save it to the .github/workflows folder of your repository. |
Sounds good to me. And just the "matlab.yml" text will be the hyperlink? |
Yes, you got it right. |



This change adds an alert to the top of the page when a user clicks the "Generate Workflow" button. The alert allows them to manually download the
matlab.ymlfile and add it to their.github/workflowsfolder if the automatic creation does not work.There are two scenarios where automatic creation will fail:
In these cases, the "Generate Workflow" button will open a new window that shows a GitHub 404 page. After closing that window, hopefully the user will see this alert to further assist them.
We cannot detect these scenarios without calling GitHub APIs, which adds complexity that doesn't feel worth it at the moment (rate limits, tokens, etc). This alert fallback felt like a reasonable compromise for now.
Closes #2 and #6