Skip to content

build-and-deploy: fix the run-name for MSYS builds #3

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

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

dscho
Copy link
Member

@dscho dscho commented Dec 19, 2022

Seems that the ${{ ... }} construct is not recursive: embedding it within itself won't have the inner one expanded. In other words, triggering an i686 build of the mintty package resulted in this very ugly title:

Build and deploy mintty (${{ inputs.architecture }})

Let's avoid that by using the format() function.

Seems that the `${{ ... }}` construct is not recursive: embedding it
within itself won't have the inner one expanded. In other words,
triggering an `i686` build of the `mintty` package resulted in this very
ugly title:

	Build and deploy mintty (${{ inputs.architecture }})

For proof, see
https://github.com/git-for-windows/git-for-windows-automation/actions/runs/3730919260

Let's avoid that by using the `format()` function described here:
https://docs.github.com/en/actions/learn-github-actions/expressions#format

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho self-assigned this Dec 19, 2022
@dscho dscho requested a review from rimrul December 19, 2022 11:37
@rimrul
Copy link
Member

rimrul commented Dec 19, 2022

Why did we have that nested structure to begin with? To prevent empty parantheses when inputs.architecture is unset? Is that an expected situation?

@dscho
Copy link
Member Author

dscho commented Dec 19, 2022

Why did we have that nested structure to begin with? To prevent empty parantheses when inputs.architecture is unset? Is that an expected situation?

Indeed, to prevent empty parentheses, and it is quite common for inputs.architecture to be unset: that's the case for all MINGW builds.

@dscho dscho merged commit 74b1df8 into main Dec 19, 2022
@dscho dscho deleted the fix-run-name-for-msys-builds branch December 19, 2022 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants