-
Notifications
You must be signed in to change notification settings - Fork 51
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
Split auto-updates into separate actions, generate workflow/fanout boilerplate #75
Split auto-updates into separate actions, generate workflow/fanout boilerplate #75
Conversation
evankanderson
commented
Apr 19, 2021
•
edited
Loading
edited
- Extract shell scripts embedded in auto-updates.yaml into separate files/actions.
- Add script to auto-generate workflows based on auto-apply.yaml files in action directories.
- Attempt to extract boilerplate and env-var passing and move to inputs/outputs between stages.
- Change "update-deps" to support running autogen even on non-go.mod directories.
- Add the ability to run automation for just one repo rather than all repos.
Always default release value.
Support multiple repo checkouts.
(I can squash the commit history if desired.) Sample here: https://github.com/evankanderson/knobots/actions, happy to do runs with different parameters if desired. |
Fix extra space in gofmt command. Fix reference to ubuntu:latest in prettier command.
Fix Dockerfile for prettier to include npm. Set `path` for create-pr action.
nit on copyright for all files |
/assign @xtreme-sameer-vohra was going to look at this |
Oops, thanks! Added licenses to all the Dockerfiles and YAML files under actions |
@@ -0,0 +1,144 @@ | |||
# Copyright 2020 The Knative Authors. |
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.
nit: 2021
Hey @evankanderson |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Update actions |
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.
These are generated files now, please add a warning or header that says they are generated, do not edit...
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.
Thanks, done!
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 am in favor of landing this and working through any issues we find, this approach seems to be headed in a more maintainable direction, which is very very welcome. Thank you @evankanderson for this work, I am sure it is the first step of many we can make to keep making the idea of automation useful for us in an open way.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: n3wscott The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |