René's URL Explorer Experiment


Title: Release automatically when the version changes by jonathan-kosgei · Pull Request #21 · ipdata/java · GitHub

Open Graph Title: Release automatically when the version changes by jonathan-kosgei · Pull Request #21 · ipdata/java

X Title: Release automatically when the version changes by jonathan-kosgei · Pull Request #21 · ipdata/java

Description: Summary Add a release job to ci.yml that runs after test on every push to the default branch, reads the version from pom.xml and, when tag v does not exist yet, creates the tag and the GitHub release and publishes to Maven Central in the same run. Make release.yml callable (workflow_call with a tag input) while keeping its v* tag push trigger, so a tag pushed by hand still publishes as before. The deploy step and the secrets it uses are unchanged. Add a "Releasing" section to the README. How it works test runs as today for pull requests and pushes. release (needs: test; push to the default branch only; permissions: contents: write; serialized through the release concurrency group) reads the project version from pom.xml with awk, derives v and checks it with git ls-remote --exit-code --tags origin refs/tags/. When the tag is missing it runs gh release create --target $GITHUB_SHA --title --generate-notes with the workflow token and sets the job outputs tag and created=true; when the tag exists it says so and sets created=false. publish (needs: release, only when created == 'true') calls release.yml with tag and secrets: inherit. A tag created with the workflow token does not trigger other workflows, so the Maven Central deploy has to run inside the same run. release.yml checks out refs/tags/, taking the tag from the input or, on the tag push trigger, from github.ref_name, and runs the unchanged mvn deploy -DskipTests=true. Verification python3 -c 'import yaml,sys; [yaml.safe_load(open(f)) for f in sys.argv[1:]]' .github/workflows/*.yml passes and actionlint v1.7.12 reports no findings for either workflow. The version command prints 0.3.0 against the current pom.xml; git ls-remote --exit-code --tags origin refs/tags/v0.3.0 exits 2 (missing) and refs/tags/v0.2.2 exits 0 (present), so a merge of the current version would create v0.3.0. The two run scripts of the release job were executed locally under bash -e with a stub gh: they write version=0.3.0 and tag=v0.3.0, then created=true for the missing tag and created=false for the existing one. Only files under .github/ and the README change; the build and tests are untouched. The push-triggered release and publish jobs can only run after this is merged; the pull request CI on this branch exercises the test job. 🤖 Generated with Claude Code

Open Graph Description: Summary Add a release job to ci.yml that runs after test on every push to the default branch, reads the version from pom.xml and, when tag v<version> does not exist yet, creates the tag and ...

X Description: Summary Add a release job to ci.yml that runs after test on every push to the default branch, reads the version from pom.xml and, when tag v&lt;version&gt; does not exist yet, creates the ...

Opengraph URL: https://github.com/ipdata/java/pull/21

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d11d5465-cc6f-a647-c6b4-a4abf0d35945
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC3E6:21AC3F:39EC90B:494F984:6B01DBD0
html-safe-nonce29cac546160351f243a0b55289ffac2df2c1ba26708cdfadc8c35f20b1f8df61
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0U2OjIxQUMzRjozOUVDOTBCOjQ5NEY5ODQ6NkIwMURCRDAiLCJ2aXNpdG9yX2lkIjoiNzUxNTk2MzIwODA4ODI4MDAxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacae2d72dd774fb6b13a0be3725bafbb35584aa1a3edf57086630afed251fc25d5
hovercard-subject-tagpull_request:5142464175
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/ipdata/java/pull/21/files
twitter:imagehttps://avatars.githubusercontent.com/u/6712914?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6712914?s=400&v=4
og:image:altSummary Add a release job to ci.yml that runs after test on every push to the default branch, reads the version from pom.xml and, when tag v<version> does not exist yet, creates the tag and ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/ipdata/java git https://github.com/ipdata/java.git
octolytics-dimension-user_id33085067
octolytics-dimension-user_loginipdata
octolytics-dimension-repository_id236467949
octolytics-dimension-repository_nwoipdata/java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id236467949
octolytics-dimension-repository_network_root_nwoipdata/java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ipdata/java/pull/21/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipdata%2Fjava%2Fpull%2F21%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipdata%2Fjava%2Fpull%2F21%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=ipdata%2Fjava
Reloadhttps://github.com/ipdata/java/pull/21/files
Reloadhttps://github.com/ipdata/java/pull/21/files
Reloadhttps://github.com/ipdata/java/pull/21/files
ipdatahttps://github.com/ipdata
javahttps://github.com/ipdata/java
Codehttps://github.com/ipdata/java
Issueshttps://github.com/ipdata/java/issues
Pull requestshttps://github.com/ipdata/java/pulls
Actionshttps://github.com/ipdata/java/actions
Projectshttps://github.com/ipdata/java/projects
Security and qualityhttps://github.com/ipdata/java/security
Insightshttps://github.com/ipdata/java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fipdata%2Fjava%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fipdata%2Fjava%2Fissues%2Fnew%2Fchoose
jonathan-kosgeihttps://github.com/jonathan-kosgei
masterhttps://github.com/ipdata/java/tree/master
auto-releasehttps://github.com/ipdata/java/tree/auto-release
Conversation 0 https://github.com/ipdata/java/pull/21
Commits 1 https://github.com/ipdata/java/pull/21/commits
Checks 3 https://github.com/ipdata/java/pull/21/checks
Files changed https://github.com/ipdata/java/pull/21/files
Please reload this pagehttps://github.com/ipdata/java/pull/21/files
Release automatically when the version changes https://github.com/ipdata/java/pull/21/files#top
Show all changes 1 commit https://github.com/ipdata/java/pull/21/files
51c7cee Release automatically when the version in pom.xml changes claude Nov 3, 2026 https://github.com/ipdata/java/pull/21/commits/51c7cee7d88d86680f983dfb45998febb50be5a9
Clear filters https://github.com/ipdata/java/pull/21/files
Please reload this pagehttps://github.com/ipdata/java/pull/21/files
Please reload this pagehttps://github.com/ipdata/java/pull/21/files
ci.yml https://github.com/ipdata/java/pull/21/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
release.yml https://github.com/ipdata/java/pull/21/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
README.md https://github.com/ipdata/java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
.github/workflows/ci.ymlhttps://github.com/ipdata/java/pull/21/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
View file https://github.com/ipdata/java/blob/51c7cee7d88d86680f983dfb45998febb50be5a9/.github/workflows/ci.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ipdata/java/pull/21/{{ revealButtonHref }}
https://github.com/ipdata/java/pull/21/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
.github/workflows/release.ymlhttps://github.com/ipdata/java/pull/21/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
View file https://github.com/ipdata/java/blob/51c7cee7d88d86680f983dfb45998febb50be5a9/.github/workflows/release.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ipdata/java/pull/21/{{ revealButtonHref }}
https://github.com/ipdata/java/pull/21/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
https://github.com/ipdata/java/pull/21/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
README.mdhttps://github.com/ipdata/java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/ipdata/java/blob/51c7cee7d88d86680f983dfb45998febb50be5a9/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ipdata/java/pull/21/{{ revealButtonHref }}
https://github.com/ipdata/java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/ipdata/java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/ipdata/java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
Please reload this pagehttps://github.com/ipdata/java/pull/21/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.