Skip to content

Setting branch only should suffice for checking out a specific branchΒ #251

@pat-s

Description

@pat-s

I'd expect the following to suffice for checking out a dedicated branch which differs from the $CI_COMMIT_BRANCH the pipeline trigger originated from:

clone:
  git:
    image: woodpeckerci/plugin-git:2.6.5
    settings:
      branch: gh-pages

However, this still results in a checkout of $CI_COMMIT_BRANCH. Instead, the following is needed:

clone:
  git:
    image: woodpeckerci/plugin-git:2.6.5
    settings:
      branch: gh-pages
      ref: gh-pages

Note the ref: gh-pages part.

I think this is a bug and ref shouldn't have an actual part in this. Any opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions