-
Notifications
You must be signed in to change notification settings - Fork 820
Match filename extension only at the end of the filename #24
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
Conversation
|
Ping... |
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.
Seen to solve problem with extension being found in the wrong place.
|
A workaround until this PR is merged is to use the @giltene's fork: - name: Set up JDK 11
uses: giltene/setup-java@master
with:
java-version: 11 |
|
@damccorm, @stephenmichaelf can one of you review this change and hopefully merge it? We would really like to put .sig files back where they belong on the Zulu cdn, and this is what is blocking that right now... |
|
@bryanmacfarlane could you triage appropriately? |
* Match extension only at end of line * Add optional java-package parameter (support jre, jdk, and jdk+fx)
Add java-package parameter to action, support jre, jdk, and jdk+fx (#1)
|
PR #27 includes this change with a cleaner history, so I’m closing this one. |
Changes the matching for filename extensions to only match extensions at the end of the filename, and ignore false matches with the same pattern in the middle of the name. This avoids wrongly matching .tar.gz.sig and zip.sig files in the CDN.
The change will prevent issues like #23 happening in the future if/as .sig files are added on the CDN. For the time being, the Zulu CDN has been cleansed of .sig files to avoid this issue, but we would like to be able to safely .sig files back up once this change makes it into a 1.x version of setup-java...
I have verified this change the entire range of Java versions (6, 7, 8, 9, 10, 11, 12, 13), update levels, and OS platforms available on the CDN at this point in time.