Skip to content
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

Add Gradle Wrapper Validation Starter Workflow #118

Closed
wants to merge 2 commits into from

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Dec 14, 2022

Signed-off-by: Daniel Widdis [email protected]

Description

Adds a template for the Gradle Wrapper Validation Action to run organization-wide.

This will provide an easy path for repo maintainers to add this workflow with a few mouse clicks.

Issues Resolved

Closes opensearch-project/opensearch-plugins#199

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So why are we adding this to .github? I think a copy of this belong in all gradle repos and some documentation should be added to https://github.com/opensearch-project/opensearch-plugins.

@dbwiddis
Copy link
Member Author

So why are we adding this to .github? I think a copy of this belong in all gradle repos

Yeah, I misread some documentation and thought everything in .github replicated including workflows. It's not quite that way. Many templates do, but it seems I should put it in a workflow_templates directory (see docs). That will allow other repos to directly add it with a few clicks, and we can run a campaign to make that happen.

Putting this to draft until I have time to follow up.

@dbwiddis dbwiddis marked this pull request as draft December 15, 2022 19:11
Signed-off-by: Daniel Widdis <[email protected]>
@dbwiddis dbwiddis marked this pull request as ready for review February 5, 2023 20:25
@dbwiddis dbwiddis requested review from dblock and removed request for mch2, peternied, saratvemulapalli and CEHENKLE February 5, 2023 20:26
@dbwiddis dbwiddis changed the title Add Gradle Wrapper Validation Action Add Gradle Wrapper Validation Starter Workflow Feb 6, 2023
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be called gradle-wrapper because it will apply to a subset of repos.

I'm still uneasy about putting this in .github because it only applies to a subset of repos, while everything here seems to apply to all repos. Is there really no better place? 😞

@dbwiddis
Copy link
Member Author

dbwiddis commented Feb 8, 2023

I'm still uneasy about putting this in .github because it only applies to a subset of repos,

The filePatterns in the config will only make this visible as an option to repos with one of those files in their project root.

  "filePatterns": [
      "^gradlew$",
      "^gradlew.bat$"
  ]

Is there really no better place?

Per this link it's the only place for this templated approach.

I'm ok with just closing this PR if you don't think we need starter workflows, and just want to host an example somewhere like opensearch-plugins

@dblock
Copy link
Member

dblock commented Feb 9, 2023

I'm ok with just closing this PR if you don't think we need starter workflows, and just want to host an example somewhere like opensearch-plugins

I think that would be best.

@dbwiddis
Copy link
Member Author

dbwiddis commented Feb 9, 2023

Closing in favor of an edit to workflow section of opensearch-plugins project.

@dbwiddis dbwiddis closed this Feb 9, 2023
@dbwiddis dbwiddis deleted the checksum branch February 9, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Install Gradle Wrapper Validation Action org-wide
2 participants