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

If the workflow creates a tag, use annotated tags #1616

Open
duckinator opened this issue Dec 9, 2024 · 0 comments
Open

If the workflow creates a tag, use annotated tags #1616

duckinator opened this issue Dec 9, 2024 · 0 comments

Comments

@duckinator
Copy link
Contributor

If dispatch-releases = true is set and a tag doesn't already exist, the tag for a release will be implicitly created by a call to gh release create. However, this doesn't generate annotated tags.

From man git-tag:

Annotated tags are meant for release while lightweight tags are meant for private or temporary object labels.

From the gh release create documentation:

To create a release from an annotated git tag, first create one locally with git, push the tag to GitHub, then run this command.

From the GitHub REST API documentation:

The API only supports annotated tag objects, not lightweight tags.

Using the git command or the GitHub API to create an annotated tag should work.

However, I ran into problems when using the actions/github-script on duckinator/STAYFOCUSED (the API call succeeded but the tag was not created).

@duckinator duckinator changed the title If the workflows creates a tag, use annotated tags If the workflow creates a tag, use annotated tags Dec 9, 2024
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

1 participant