Skip to content

Handle error when pushing git tags with the git CLI - #735

Open
bluwy wants to merge 3 commits into
mainfrom
handle-error-git-cli
Open

Handle error when pushing git tags with the git CLI#735
bluwy wants to merge 3 commits into
mainfrom
handle-error-git-cli

Conversation

@bluwy

@bluwy bluwy commented Sep 4, 2026

Copy link
Copy Markdown
Member

fix #201

The GitHub API also handle the error if it fails, so I don't see why the git CLI path also wouldn't

@changeset-bot

changeset-bot Bot commented Sep 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 077c356

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/action Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread src/github.ts Outdated
}
} catch (err) {
// Assuming tag was manually pushed in custom publish script
core.warning(`Failed to create tag ${tag}: ${(err as Error).message}`);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we state this assumption in the message as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we can add it. I'll make the change

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

Successfully merging this pull request may close these issues.

Always try to push invalid tags

2 participants