Plugins/drone-gitea-release : can't run this in promotion

Hello everyone.

I’m using the gitea-release plugin in my pipeline.

When the steps are not promotion only, the pipeline works fine, the release was created and files uploaded. But when limiting it to run in promotion, I got this error:

msg="The Gitea Release plugin is only available for tags"

To avoid misunderstanding, this is what I’ve done to get this error.

  1. a tested working pipeline using gitea-release plugin (that the step has no trigger)
  2. add trigger to the step that using gitea-release plugin:
    when:
      event:
      - promote
  1. trigger the build with a tag push(git push origin --tags).
  2. promote the build.

steps 1-3 works fine, step 4 got the error.

Hi @fengjiongmax : can you refer this and see if it helps: Gitea release plugin - #7 by bradrydzewski, drone-gitea-release/plugin.go at 2087ad8457674e14eb905a1369a6553512a4e1f7 · drone-plugins/drone-gitea-release · GitHub this doc too: Promotions | Drone

Do let me know if you are facing any further issues :slight_smile:

@Shruthikini Thank you for replying!
I can use a tag trigger instead and the error will be gone.

I think the root of my problem is the gitea release plugin limiting to tag trigger only: drone-gitea-release/plugin.go at 2087ad8457674e14eb905a1369a6553512a4e1f7 · drone-plugins/drone-gitea-release · GitHub

But if the promoted build was triggered by a tag push, the event will be promote, not tag, then it fails.

@fengjiongmax right! I think @jimsheldon will have more details for you around this.

Thanks!