-
-
Notifications
You must be signed in to change notification settings - Fork 772
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
ICU-22721 Prevent inconsistent ICU4J Maven deploys via CI #2970
Conversation
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.
Nitpicking on words.
- "manual" => my understanding (from the email thread) is that this can also run automatically, in some cases. So it is not always "manual"?
- "deploys" vs "deployments"
Thank you!
M.
Mihai
.github/workflows/maven.yaml
Outdated
then echo "version-type=snapshot" >> "$GITHUB_OUTPUT" | ||
else echo "version-type=release" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Prevent manual deploys of full release |
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.
- name: Prevent manual deploys of full release | |
- name: Prevent deployments of release versions |
.github/workflows/maven.yaml
Outdated
- name: Prevent manual deploys of full release | ||
if: github.event_name == 'workflow_dispatch' && steps.mvn-proj-version-type.outputs.version-type == 'release' | ||
run: | | ||
echo "Manual deploys of publishing artifacts should only be done for snapshot versions" |
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.
echo "Manual deploys of publishing artifacts should only be done for snapshot versions" | |
echo "Deployments of the icu4j artifacts should only be done for snapshot versions" |
3d35b7b
to
d0e3aff
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
I made a few wording changes, including the "deploy" -> "deployment" change. I kept "manual" because that is used in a step that is an additional early exit check to provide a more explanatory warning to users of what is & isn't an appropriate usage of artifact deployment in relation to versions. This extra check explicitly addresses the scenario that triggered the whole email thread in the first place. If not for the above reasons, then yes, that particular step is not entirely necessary from a technical perspective because this PR down below in later steps already prevents publishing of |
d0e3aff
to
23e9cee
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
Update the CI workflow that deploys Maven artifacts to Github for ICU4J so that:
icu4j
artifact to Github for release (non-snapshot) versions. This preserves Maven Central as the single source of truth foricu4j
artifacts for release versionsTrial runs in my personal fork:
1
), triggered manually: https://github.com/echeran/icu/actions/runs/8730537899/job/23954536566Checklist