Skip to content

Publish job condition evaluation is wrong #918

Closed

Description

Description

The if condition to run the publish job still runs if you manually trigger a workflow on a branch other than main or master.

job_publish_module:
    name: 'Publish module'
    if: contains(fromJson('["refs/heads/main", "refs/heads/master"]'), github.ref) || ('${{ github.event.inputs.prerelease }}' == 'true')

Screenshots

image

Activity

  1. added
    bug
    on Jan 22, 2022
  2. segraef commented on Jan 22, 2022

    @segraef
    ContributorAuthor

    I think I fixed it, PR incoming.

    image

    image

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

Metadata

Metadata

Labels

bug

Type

No type

Projects

  • Status
    Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions