-
Notifications
You must be signed in to change notification settings - Fork 997
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
workflow: Remove if from env conditional #9644
workflow: Remove if from env conditional #9644
Conversation
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.
lgtm, thanks @stevenhorsman, and welcome to GHA whac-a-mole session! :-)
- It appears like the `if` isn't required when setting env as a conditional - `inputs.stage` over input.stage - Swap matrix.component to matrix.asset Signed-off-by: stevenhorsman <steven@uk.ibm.com>
06179de
to
f7fd2f9
Compare
As this is fixing a broken workflow on |
@@ -96,10 +96,10 @@ jobs: | |||
ARTEFACT_REGISTRY_USERNAME: ${{ github.actor }} | |||
ARTEFACT_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |||
TARGET_BRANCH: ${{ inputs.target-branch }} | |||
RELEASE: ${{ if inputs.stage == 'release' && 'yes' || 'no' }} | |||
RELEASE: ${{ inputs.stage == 'release' && 'yes' || 'no' }} |
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.
Hi @stevenhorsman !
Sorry, I reviewed this and completely overlooked all those mistakes! I should take some vacation...oh wait...
Seriously now, let's enable this https://github.com/marketplace/actions/actionlint action as part of the static-checks to lint the workflow files. Probably some on the mistakes here we would have caught.
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.
I tried running actionlint locally and (probably due to user error) it didn't detect this issues. I think it's worth a try anyway
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.
hmmm Interesting
if
isn't required when setting env as a conditional :( Sorry!