Skip to content
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

ci(linkcheck): fix invalid ternary operator #4495

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

aciba90
Copy link
Contributor

@aciba90 aciba90 commented Oct 6, 2023

Proposed Commit Message

ci(linkcheck): fix invalid ternary operator

Additional Context

I am not sure why github.event_name == 'workflow_dispatch' && github.event.inputs.failOnError is needed at all, but the JS-sh ternary operator (x ? y : z) it not a valid action expression, as shown in https://github.com/canonical/cloud-init/actions/runs/6429056328.

Test Steps

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

@TheRealFalcon
Copy link
Member

TheRealFalcon commented Oct 6, 2023

Thanks for this. Since you're here, can we also update the link threshold so it's not automatically failing every build and not display the number 6 as the fail threshold since that's already out of date?

Fix invalid ternary operator, job title and bump threshold.
Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@TheRealFalcon TheRealFalcon merged commit 46fb87e into canonical:main Oct 6, 2023
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