-
Notifications
You must be signed in to change notification settings - Fork 8
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
Reusable workflow #24
Conversation
So essentially we just have people reference the template instead of make a copy of it? |
Copy the template as a template and/or referencing the GitHub actions yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it in the sandbox (with adapted branch), but the deploy-books steps seems to fail: https://github.com/TeachBooks/Sandbox/actions/runs/8684188935/job/23811416749. @severinbratus could you look into that?
Two futher small things below, but you can merge it without those and treat those as issues seperately
Another major thing:
I think it's better to include this workflow in a repo on its own. The template repository is used not only for providing the github workflow, but also with some book-configurations ready. Or do you have other ideas about this @severinbratus? If you agree, you can delete the deploy-book-ghpages.yml
here, add it in a seperate repo in TeachBooks
and adapt the reference URL
About the logging, it's a bit hidden in the steps. Would it be possible to have it displayed somewhere on the main page of an action (a page like this; https://github.com/TeachBooks/Sandbox/actions/runs/8685977352) Might this be a solution: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary. That seems useful: https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/. You could even include a nice representation of the configuration variables so that it's perfectly clear how it is deployed. This can also be treated as a seperate issue later on
Will do.
I have thought of this, and now I agree -- this would be less confusing.
I meant the GitHub Actions workflow log, e.g. here under |
@severinbratus , I've updated my response on the logging, please see the original message now after a refresh of this page ;) |
I agree, summaries seem great for this. I have updated issue TeachBooks/deploy-book-workflow#1 to specify it |
@Tom-van-Woudenberg @rlanzafame The pipeline is failing now on the What this means for us, is I believe we will have to drop the aliasing feature, since symlinks work unpredictably now, and the people at GitHub in fact do not want them to work for security reasons (source: actions/upload-pages-artifact#51 (comment)) |
@severinbratus , but it worked before right? Why doesn't it work now? Here it works fine: https://github.com/TeachBooks/Sandbox_temp |
For now not able to say what the reason for this inconsistency is, but I suppose it's bugs on GitHub's side. Will debug further later this week |
Could it be related to that the artifacts are not available because of the separation of those workflows? In sandbox_temp is didn't user the call workflow, just deploy. While in https://github.com/TeachBooks/Sandbox/actions/workflows/call-deploy-book.yml the call workflow never succeeded. |
OK, I am sorry for the confusion - this was a bug in my code, fixed now. Beware however, that the |
Make the core workflow reusable (callable)
Introduce a caller workflow pointing to the callable workflow file in the TeachBooks template (at the main branch).
This is the reason the pipeline is failing, since it is attempting to call a workflow that is not there.
Log the "cleaned" name in the form:
This happens in job
get-branches
, stepset-branches
. This may however be somewhat inconvenient for the users.We could create another job, or list these in the 404 page. EDIT: this is to be resolved in another PR
Closes #20