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

Validate Gradle wrapper #1501

Merged
merged 1 commit into from Mar 11, 2024
Merged

Conversation

NotMyFault
Copy link
Member

@NotMyFault NotMyFault commented Mar 10, 2024

I noticed 865cecc and in case someone bumps the wrapper in the future, if needed, the action added validates whether the .jar is legit or not.

Signed-off-by: Alexander Brandes <mc.cache@web.de>
@NotMyFault NotMyFault marked this pull request as ready for review March 10, 2024 09:16
on: [pull_request, push]
jobs:
build_pr:
if: github.repository_owner == 'jenkinsci'
Copy link
Member

Choose a reason for hiding this comment

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

Does this work on forks with this if?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes: https://github.com/jenkinsci/acceptance-test-harness/actions/workflows/verify-gradle-wrapper.yaml

The if-clause context refers to the owner of the repository where the workflow is running, not where the PR is coming from.
The job would only be skipped if you file a PR on your fork towards your fork.

@timja timja merged commit 65e2c8a into jenkinsci:master Mar 11, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants