Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Is branch checking broken? #2202

@fabianegli

Description

@fabianegli

Possibly not, but how does

[[ $GITHUB_HEAD_REF = "dev" ]]

make any sense? Shouldn't it be

[[ $GITHUB_HEAD_REF == "dev" ]]?

After all, it's a comparison - and single = are normally assignments. But there might be some hidden Bash sorcery at work that I don't understand...

See:

{ [[ ${{github.event.pull_request.head.repo.full_name}} == nf-core/tools ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]

Introduced in f499c3f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions