Skip to content

Pushing tags doesn't work #11

@sdruskat

Description

@sdruskat

Copying the GitHub template and changing it to run on pushed tags leads to a failing workflow:

on:
  push:
    tags:
      - "**"

This is because the checkout actions (or rather, git) checks out into detached HEAD state.

In these cases, a new branch must be created from the detached HEAD before copying it, otherwise you run into fatal: cannot copy the current branch while not on any.

We need to reflect this in the template and the docs website (docs.smp) as this is a very common case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions