Skip to content

Publish job condition evaluation is wrong #918

@segraef

Description

@segraef

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions