-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Wildcard character not respected #251
Comments
Can you try |
As to your specific problem, please uses When GitHub first released Actions, they had their own 'setup-*' actions for several programming languages. So, one used For many reasons, they decided it was better to allow organizations/users that were strongly connected to the languages to create/maintain their own 'setup' actions. They now recommend that this action be used for Ruby workflows/CI. So, I believe that document is mistaken, in that 'wildcard' characters have never been supported in this repo. Note that the wildcard character format is not tested in Actions CI here. Sometime soon I'll open an issue or PR with https://github.com/github/docs to fix/update the info you found. |
If you have time, re updating the GitHub doc, see: Haven't created a PR for it. If I do, I'll remind them that pinning to an SHA is a PITA for new users, and offer to push a commit for that... |
@MSP-Greg If I put in 3.0, then it installs 3.1.0, which I'm attempting to avoid, because Rails 7 does not work with Ruby 3.1.0 |
@dentarg |
The yaml parser truncates trailing zeros. So, [2.7, 3.0] is converted to [2.7, 3], and the 'three' just locks the major version. Use |
@MSP-Greg Ah, that was the trick. Thanks for the help. |
The issue about that is actions/runner#849 |
Hope you don't mind but I opened a PR for your branch: github/docs#13418 |
Thanks. Re your suggestion, not sure about it. I suspect part of the reason for the 'parsing' issue is that Ruby treats
But in js, Also, many parsers (including Psych) truncate zeros... |
The GHA YAML parser is in C# AFAIK, and it should be able to differentiate 3.0 and 3 like most YAML parsers do (and as the YAML spec says IIRC).
Maybe we should always use string versions in examples? |
I haven't checked the spec, nor do I recall how many 'non-typed' languages consider 3.0 equivalent to 3.
Don't know. There are obviously going to be many workflows that don't do that, so I thought including examples with 3.0 and a brief explanation would be enough to limit issues. Haven't checked the doc here recently... Sorry. |
I set my config to use version 3.0.x per the instruction here: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-ruby#testing-with-multiple-versions-of-ruby
but when I did that it doesn't look like it could resolve the wildcard:
https://github.com/projectblacklight/blacklight/runs/4637642004?check_suite_focus=true
The text was updated successfully, but these errors were encountered: