-
Notifications
You must be signed in to change notification settings - Fork 6
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
Could we add a workflow to auto-fix the Lint? #321
Comments
Why do you say that? We can just call the reusable test workflow as a follow-up step with |
I'm thinking of this: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow The example that I have is CompatHelper (e.g. https://github.com/TulipaEnergy/TulipaEnergyModel.jl/pull/648/checks). It creates the PR but because it was generated by a workflow with default permissions, it doesn't run the other workflows. That being said, according to the docs I linked, maybe we just need to use a separate SSH key - and we have one, DOCUMENTER_KEY, that we can reuse. |
I see what you mean, my suggestion essentially duplicates the test workflow. Is that a bad thing since the other option requires complicated setup (storing secrets, etc)? |
Ok, I get what you mean now. It would not future-proof - although a great use of the reusable workflow - because if we have more tests to run, then we can't add it to the Linter. |
Description
It could be the Lint itself:
Failing run:
However, I think there will be a problem because actions can't trigger actions. So this fix would not be tested until someone opens and closes the PR.
Also, it would not work for forks, since it will require write permissions to create the PR.
@suvayu any opinions on the feasibility of this?
Validation and testing
No response
Motivation
No response
Target audience
No response
Can you help?
No response
The text was updated successfully, but these errors were encountered: