-
Notifications
You must be signed in to change notification settings - Fork 613
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
Fix Gradle Wrapper Uprade (again) #2669
Conversation
4c8a357
to
1809541
Compare
Thank you @StefMa! Would this work? Let's test it^ I tried the fix the old Gradle wrapper upgrade by providing a GitHub PAT. Also, there are some issues with GitHub secrets, they are provided only when the run originates from the root Ivy Wallet. What's required from my side to make this work? Btw, |
To make it work, it needs to behave as Dependabot does: it raises a PR on which the CI runs, I can review and only if it works we merge it. |
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.
Research and paste me a TL;DR; on how the Gradle upgrade plugin works. If it raises a PR, we're good to go and merge + enable the workflow. Otherwise, we need to find a way to make it raise PRs like Dependabot / Renovate.
Hey, you can check out how it works for example in our SentryProguardGradlePlugin. As you see, the plugin, even if used the However, the PR will not run any tests. However, since I also don't know how to create a proper PAT to make it work, I thought it make sense to go with the |
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.
Got it - thanks for the explanation. The CI checks should work out of the box. I'll test it. Also, enabled the Gradle Upgrade workflow.
Hey @StefMa it the workflow failed: Error is sth like: GitHub Actions aren't permitted to create a PR. which we use as a bot account. |
Hey, |
Seems you first have to allow it in the organisation 😁 |
Hey @StefMa the workflow still fails but this time with a different error. That's good we're making progress 😀 |
It's because the last time the branch with that name was already created and pushed, but they were unable to create the PR. All you have to do is to delete the existing branch. |
Got it. Deleted ✅ Let's see if it'll work tmrw |
Lets go with this for now 🤓
I will not run tests, but you get at least informed about it via PRs.
A simple
checkout PR_number
and./gradlew check
or something should reveal if it works or not 😉Better than nothing I would say.
Your token can also be updated later, in case this apporoach is getting too annoying. But I doubt it, because Gradle reelase are also not that often 🙃