Skip to content

Does release.yml not run when v* tags are pushed? #1970

Answered by EliahKagan
EliahKagan asked this question in Q&A

You must be logged in to vote

The cause

In cargo-smart-release, the perform_release function iterates through the crates that are to be published. One of the steps it does in each iteration is to try to create a tag and, if that succeeds, add it to tag_names. After all crates have been processed, the collected tag names are pushed:

git::push_tags_and_head(&ctx.base.repo, &tag_names, options.clone())?;

This push_tags_and_head function builds and runs a single git push command. This command lists all the tags to be pushed:

for tag_name in tag_names {
    cmd.arg(tag_name.as_bstr().to_str()?);
}

Thus, we push all the tags together. The GitHub Actions documentation on the push event says:

Events will not be created for t…

Replies: 2 comments 11 replies

You must be logged in to vote
6 replies
@Byron

@EliahKagan

EliahKagan Apr 26, 2025
Collaborator Author

@Byron

@EliahKagan

EliahKagan Apr 26, 2025
Collaborator Author

@Byron

EliahKagan
Jul 8, 2025
Collaborator Author

You must be logged in to vote
5 replies
@Byron

Byron Jul 9, 2025
Maintainer

@EliahKagan

EliahKagan Jul 12, 2025
Collaborator Author

@Byron

@EliahKagan

EliahKagan Jul 13, 2025
Collaborator Author

@EliahKagan

EliahKagan Jul 13, 2025
Collaborator Author

Answer selected by EliahKagan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants