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

GitHub release must have a description for action to work #91

Open
mgimenoromanadevinta opened this issue Feb 8, 2024 · 2 comments
Open

Comments

@mgimenoromanadevinta
Copy link

Hello

I've detected that the release in GItHub must have a description, otherwise it will complain with the following message

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

Is this the intended behavior?

Thanks!

@smac89
Copy link
Member

smac89 commented Feb 9, 2024

@mgimenoromanadevinta can you show point to the build that exhibits this behavior?

The error you are pointing to may also be based on the fact that this action only works when you create a release, not simply a tag.

@mgimenoromanadevinta
Copy link
Author

Hello @smac89

This is the workflow that I'm currently using.

name: Keep the action versions up-to-date

on:
  release:
    types:
      - released
      - published
      - edited

jobs:
  actions-tagger:
    runs-on: small
    permissions:
      contents: write
    steps:
      - uses: Actions-R-Us/actions-tagger@v2

All works well but if the released, published or edited release doesn't have a description then the following error is displayed

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

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

2 participants