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

Actionlint does not alert on a mis-terminated expression for if #373

Open
razzmatazz opened this issue Oct 31, 2023 · 0 comments
Open

Actionlint does not alert on a mis-terminated expression for if #373

razzmatazz opened this issue Oct 31, 2023 · 0 comments

Comments

@razzmatazz
Copy link

For example, I have this code in the workflow file:

(...)
jobs:
  jobX:
    (...)

  jobY:
>>> if: ${{ needs.jobA.outputs.A == 'true' }}
>>>         || needs.jobB.outputs.B == 'true' }}
    needs:
      - jobX
    steps:
(...)

actionlint does not report it that there is a second line after if that somehow makes github actions ignore the condition under if: and will run this job unconditionally

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

No branches or pull requests

1 participant