question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lightweight tags create no "create event" in github actions

See original GitHub issue

Description

Commitizen creates only lightweight tags, which are not creating a “create event” in github actions.

Steps to reproduce

https://github.com/commitizen-tools/commitizen/blob/master/commitizen/git.py#L49

Current behavior

A lightweight tag created by commitizen does not lead to a usefull event in github actions.

Desired behavior

Create an annotated tag, e.g. git tag -a <version> -m <version>. This should be at least a configurable option IMHO.

Environment

  • commitizen version: master

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
woilecommented, Sep 23, 2020

secrets.GITHUB_TOKEN won’t trigger another workflow. It’s like using [skip ci] in other CI’s.

You have to use a personal token like here: https://github.com/commitizen-tools/commitizen/blob/master/.github/workflows/bumpversion.yml

I asked the same in the github action discussion board: https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/2

Note: for some reason your PERSONAL_TOKEN must be provided to the checkout step 🤷‍♂️

I think in our case (commitizen) that’s why it was failing. Now we are waiting for next release 🤞 hahahha

1reaction
woilecommented, Sep 23, 2020

thanks for the finding! some questions, how did you find this problem? could you point the GA documentation where they mention lightweight tag don’t create events? I couldn’t find it.

I’ll run some tests in to verify it as well 💪

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run GitHub Actions Workflow only for new tags #25302
I have a Workflow that I only want to run when a new tag is pushed to the repository. I have set the...
Read more >
Marketplace Actions Git Tag Generator - GitHub
Generate and push SemVer formatted git tag on push/merge with specified commit message. ... Note: This action creates a lightweight tag.
Read more >
Marketplace Actions Github Tag Bump
Note: This action creates a lightweight tag. Bumping. Manual Bumping: Any commit message that includes #major , #minor , #patch ...
Read more >
Git tags - GitHub Enterprise Server 3.3 Docs
Use the REST API to interact with tag objects in your Git database on GitHub ... If you want to create a lightweight...
Read more >
Github release should create annotated (not lightweight) tags
@ssbarnea commented on Feb 9: At this moment creating a release (tag) using releases page does only create a lightweight git tag, which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found