Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ci: Fix release workflow inputs #5681

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 2 commits into from
Jan 11, 2023
Merged

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Jan 11, 2023

It seems like doing ${{ github.event.inputs.dry_run && '--dry-run' }} is a no-no in GitHub actions. Similarly by trying to turn a boolean into string via ${{ condition && 'a' || 'b' }}. These expressions will always return the same value even if the boolean is true or false.

This PR refactors the behavior.

@mafredri mafredri self-assigned this Jan 11, 2023
@mafredri mafredri requested a review from deansheather January 11, 2023 20:44
@mafredri mafredri force-pushed the mafredri/ci-fix-release-workflow-inputs branch 3 times, most recently from 9469839 to 8e9af7f Compare January 11, 2023 22:57
@mafredri mafredri force-pushed the mafredri/ci-fix-release-workflow-inputs branch from 8e9af7f to 7147414 Compare January 11, 2023 22:59
@mafredri mafredri enabled auto-merge (squash) January 11, 2023 23:30
@mafredri mafredri merged commit c7e1ecf into main Jan 11, 2023
@mafredri mafredri deleted the mafredri/ci-fix-release-workflow-inputs branch January 11, 2023 23:32
@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants