-
Notifications
You must be signed in to change notification settings - Fork 40
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
Don't abort when run on Linux / Mac OS. #172
Conversation
I understand the use case, but I don't think it's desirable to change the default behaviour. It is a legit error to use this action on an environment other than Windows, because MSYS2 is not supported anywhere else. Therefore, please, add an option to the Action for users who want the proposed behaviour to enable it explicitly. E.g. |
I did not realize other actions might be relying on this one to error out in case the workflow was running on Linux, or Mac OS. My bad!
Added I even added a test, which will soon tell us if I did something wrong or not. M. |
25c96ce
to
428996b
Compare
428996b
to
69175fe
Compare
I am trying to call this action from another composite action, one that is supposed to be working for Linux, Mac OS, and Windows. Ideally one would put the `uses` statement behind a conditional expression, like: - uses: msys2/setup-msys2@v2 if: runner.os == 'Windows' However, composite actions do not support conditional steps yet (see: actions/runner#834), so the only way to keep the setup-msys2 step inside my action (and not forcing the wokflow to use it instead), is to suppress the error message (It's OK to log it, but it should not fail).
69175fe
to
f92d5e1
Compare
Thanks @iamFIREcracker! |
Oh boy, in the rush I did not realize I had placed |
Question: when is the next release scheduled for? (I will be keep on using my fork for the time being, so there is no rush, really) |
It was my bad! I wrote the snippet incorrectly, so you were maybe mislead by that. Then, I fixed my comment, and the code 😉.
ASAP. I'm waiting to see if #166 can make it into this release (depending on merging msys2/MSYS2-packages#2676). |
@iamFIREcracker, msys2/MSYS2-packages#2676 was merged already, and the package is pending signing for uploading: https://packages.msys2.org/queue. As soon as r54.fa231e8-1 is available upstream, I'll publish v2.6.0. |
@iamFIREcracker I just published v2.6.0 and updated tag v2 accordingly. |
I am trying to call this action from another composite action, one that
is supposed to be working for Linux, Mac OS, and Windows.
Ideally one would put the
uses
statement behind a conditionalexpression, like:
However, composite actions do not support conditional steps yet (see:
actions/runner#834), so the only way to keep
the setup-msys2 step inside my action (and not forcing the wokflow to
use it instead), is to suppress the error message (It's OK to log it,
but it should not fail).