actions-tagger icon indicating copy to clipboard operation
actions-tagger copied to clipboard

How does it work?

Open marverix opened this issue 1 year ago • 5 comments

Hi, I'm a bit lost. I thought that it's working this way, that for example I'm doing a release with version 1.0.0, and the action will add (or recreate) a tag v1. But this does not happen.


##[debug]Evaluating condition for step: 'Run Actions-R-Us/actions-tagger@v2'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run Actions-R-Us/actions-tagger@v2
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run Actions-R-Us/actions-tagger@v2
  with:
    publish_latest_tag: true
    prefer_branch_releases: false
    token: ***
This action should only be used in a release context
If you believe this to be an error, please submit a bug report
https://github.com/Actions-R-Us/actions-tagger/issues
##[debug]event: release
##[debug]tag_name: 1.0.0
##[debug]Node Action run completed with exit code 0
##[debug]Finishing: Run Actions-R-Us/actions-tagger@v2

Am I doing something wrong or do I don't understand correctly how does this action work?

marverix avatar Apr 17 '24 15:04 marverix

The logs seem ok. Could you provide a workflow that was used?

jamacku avatar Apr 24 '24 17:04 jamacku

The logs seem ok. Could you provide a workflow that was used?

I copy-pasted configuration from README.

marverix avatar Apr 26 '24 07:04 marverix

This action is mostly used for tags starting with v not sure how it works with tags that doesn't start with v.

I would try to update this section by removing v?

https://github.com/Actions-R-Us/actions-tagger/blob/148653c6179832f8392d083de6b46ad3dcc54de3/README.md?plain=1#L82-L84

Or just push v1.0.0 instead of 1.0.0.

jamacku avatar Apr 26 '24 07:04 jamacku

Yes, I tried both. Nothing happens. I mean, probably it does not matter anymore, as I used other action with less starts and it worked like a charm... I was just curious if my understanding of this action is correct?

marverix avatar Apr 26 '24 14:04 marverix

Same problem

youngcm2 avatar Aug 12 '24 19:08 youngcm2