Skip to content

output.published is a string, not boolean #210

Description

@gsuess

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions