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

output.published is a string, not boolean #210

Open
gsuess opened this issue Sep 5, 2022 · 0 comments
Open

output.published is a string, not boolean #210

gsuess opened this issue Sep 5, 2022 · 0 comments

Comments

@gsuess
Copy link

gsuess commented Sep 5, 2022

In the documentation and here it says that the output published is boolean type, whereas here it looks like that it is a string instead.

This can cause the a workflow with if condition to always fail:

  deploy-production:
    uses: ./.github/workflows/deploy.yml

    needs:
      - publish

    if: needs.publish.outputs.published

Given that its a string, the last line should be be:

    if: needs.publish.outputs.published == 'true'
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