Repository navigation
Conversation
Replace the hardcoded s3-li-2.23.3 branch in the publish workflow and release check with an s3-li-* trigger. The check accepts only refs/heads/s3-li-X.Y.Z, requires the merged PR base to be that branch, and requires the published version to be X.Y.Z-li-A.B for the same upstream X.Y.Z. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
crliao
marked this pull request as ready for review
December 3, 2026 23:48
satishkotha
approved these changes
Dec 4, 2026
Collaborator
|
this is only merging into |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
The publish workflow and release check hardcode a single release branch (
s3-li-2.23.3). Every new release line, such ass3-li-2.59.1in #16, needs about 10 string edits across the workflow, script, tests and docs. This change makes the tooling work on anys3-li-X.Y.Zbranch, so the same files can be carried to each release line unchanged.Modifications
publish-linkedin.yml: the push trigger iss3-li-*, and the job guards usestartsWith(github.ref, 'refs/heads/s3-li-'). Everything else is unchanged.check-linkedin-release.pyenforces the stricter rules the glob can't express:refs/heads/s3-li-X.Y.Zis a release branch. Names likes3-li-2.59.1-test,s3-li-2.59or tags never publish.X.Y.Z-li-A.Bfor the branch's ownX.Y.Z.s3-li-2.59.1can't publish a2.23.3-li-*version.--preparefails if it doesn't run on a release branch.RELEASE_VERSION=... check-linkedin-release.pycheck still works withoutGITHUB_REF.docs/LinkedInPublishing.mddescribes the generic branch rules. Thejfrog-publishenvironment keeps an explicit branch list, not a wildcard, so each new release line still needs an admin to allow it before anything uploads.Testing
cd .github/scripts && python3 -m unittest test_check_linkedin_release: OK. New tests cover branch-name parsing, cross-branch PRs, branch/version mismatch before any network call, and--prepareon non-release branches.actionlint .github/workflows/publish-linkedin.yml: no new findings. It reports only theconcurrency.queuekey, which already exists on the base branch and is newer than this actionlint version.s3-li-2.23.3triggers a publish run that stops at the already-published check for2.23.3-li-0.6and uploads nothing.Screenshots (if appropriate)
N/A
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License