-
Notifications
You must be signed in to change notification settings - Fork 2
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
GHA to update jib image with the latest version #57
GHA to update jib image with the latest version #57
Conversation
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
|
||
branch_name="update-eclipse-temurin-$latest_version" |
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.
Find a better name like "JShell Java Version" or "Session Java Version".
git checkout -b "$branch_name" | ||
|
||
git add "$gradle_file" | ||
git commit -m "Update eclipse-temurin version to $latest_version" |
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.
Find a better name like "Update JShell to Java 23".
git rebase origin/develop | ||
git push origin "$branch_name" | ||
|
||
gh pr create --title "Update eclipse-temurin version to $latest_version" \ |
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.
Find a better name like "Update JShell to Java 23".
git push origin "$branch_name" | ||
|
||
gh pr create --title "Update eclipse-temurin version to $latest_version" \ | ||
--body "This PR updates the eclipse-temurin version in the JShellAPI build.gradle file from $current_version to $latest_version." \ |
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.
Don't specify eclipse temurin since that's not what matters. And it's not JShellAPI but JShellWrapper.
Also since it's markdown, a link could be used to link to the build.gradle.
Closed since a new duplicate PR will replace it. |
Context
This PR was a request from Alatheron to auto update the jib docker image when a new update is available.
How this works:
Screenshots
