Skip to content
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

Add conditional logic for pulling out the Java version number #420

Merged
merged 1 commit into from
Oct 19, 2021
Merged

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Oct 19, 2021

Summary

  • Alibaba Dragonwell 8 has version numbers that don't match the Java version, so we have to dig into the Java download and pull the Java version out of the release file.
  • Alibaba Dragonwell 11+ have version numbers that match the Java versions, so we don't need to download the file. We can just extract the version from the asset name. This also fixes an issue with Java 17.0.0 where the release file has 17 not 17.0.0 which was breaking this action.

Use Cases

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

- Alibaba Dragonwell 8 has version numbers that don't match the Java version, so we have to dig into the Java download and pull the Java version out of the `release` file.
- Alibaba Dragonwell 11+ have version numbers that match the Java versions, so we don't need to download the file. We can just extract the version from the asset name. This also fixes an issue with Java 17.0.0 where the `release` file has `17` not `17.0.0` which was breaking this action.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
@dmikusa dmikusa added type:bug A general bug semver:patch A change requiring a patch version bump labels Oct 19, 2021
@dmikusa dmikusa requested a review from a team October 19, 2021 13:37
@dmikusa dmikusa merged commit 654649f into main Oct 19, 2021
@dmikusa dmikusa deleted the alibaba branch October 19, 2021 13:52
This was referenced Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant