-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix release verification to cover Mac OS appropriately #1299
Conversation
@@ -64,7 +64,7 @@ jobs: | |||
# Expression expands to ["ubuntu-latest","windows-latest"] or ["ubuntu-latest","windows-latest","macos-latest"] | |||
# GitHub expressions don't have 'if' statements, so we use a ternary operator to conditionally include the MacOS runner suffix. | |||
# See the docs for a similar example to this: https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson | |||
runner: ${{ fromJSON(format('["ubuntu-latest","windows-latest"{0}]', github.event.inputs.enableMacRunner == 'true' && ',"macos-latest"' || '')) }} | |||
runner: ${{ fromJSON(format('["ubuntu-latest","windows-latest"{0}]', inputs.enableMacRunner && ',"macos-latest"' || '')) }} # |
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.
If only we had a more readable way to express this.
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.
nit: trailing "#"
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.
There could be a more readable way but testing is hard, so i just tested this one and would like to roll with it.
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.
Good catch!
This makes sure that release verification runs jobs on MacOS as intended.
Example release in pulumi/pulumi-xyz#756 - see https://github.com/pulumi/pulumi-xyz/actions/runs/12817331557
Looks like there were a few bugs in the code: