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

How does it work? #93

Open
marverix opened this issue Apr 17, 2024 · 5 comments
Open

How does it work? #93

marverix opened this issue Apr 17, 2024 · 5 comments

Comments

@marverix
Copy link

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?

@jamacku
Copy link

jamacku commented Apr 24, 2024

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

@marverix
Copy link
Author

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

I copy-pasted configuration from README.

@jamacku
Copy link

jamacku commented Apr 26, 2024

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?

actions-tagger/README.md

Lines 82 to 84 in 148653c

push: # (1)
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+'

Or just push v1.0.0 instead of 1.0.0.

@marverix
Copy link
Author

marverix commented Apr 26, 2024

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?

@youngcm2
Copy link

Same problem

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

3 participants