Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release with github workflow: error: cannot release from branch "HEAD", instead switch to "*, !HEAD" #831

Open
Jasha10 opened this issue Oct 14, 2024 · 4 comments

Comments

@Jasha10
Copy link

Jasha10 commented Oct 14, 2024

Using actions/checkout@v4

cargo release publish --workspace --execute --no-confirm
error: cannot release from branch "HEAD", instead switch to "*, !HEAD"
error: Recipe `publish` failed on line 6 with exit code 101
@epage
Copy link
Collaborator

epage commented Oct 14, 2024

Could you share your config file and reproduction steps?

@xxshady
Copy link

xxshady commented Nov 15, 2024

@epage
Copy link
Collaborator

epage commented Nov 15, 2024

If you are releasing from a commit, instead of a branch, then you probably want to change allow-branch to ["*"], see https://github.com/crate-ci/cargo-release/blob/master/docs/reference.md

epage added a commit to epage/cargo-release that referenced this issue Nov 15, 2024
@epage
Copy link
Collaborator

epage commented Nov 15, 2024

Improving the error message in #841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants