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

**URL:** <https://drone.discourse.group/t/plugins-drone-gitea-release-cant-run-this-in-promotion/12435>\
**Category:** Drone Support\
**Created:** [August 27, 2022, 10:43am UTC](https://drone.discourse.group/t/plugins-drone-gitea-release-cant-run-this-in-promotion/12435 "2022-08-27T10:43:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fengjiongmax](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/fengjiongmax/32/7909_2.png) [@fengjiongmax](https://drone.discourse.group/u/fengjiongmax)\
**Post date:** [August 27, 2022, 10:43am UTC](https://drone.discourse.group/t/plugins-drone-gitea-release-cant-run-this-in-promotion/12435/1 "2022-08-27T10:43:38Z")

</div>

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:

```auto
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:

```auto
    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.

---

<div class="post-metadata">

**Author:** ![Shruthikini](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/shruthikini/32/7942_2.png) [@Shruthikini](https://drone.discourse.group/u/Shruthikini)\
**Post date:** [August 30, 2022, 8:31am UTC](https://drone.discourse.group/t/plugins-drone-gitea-release-cant-run-this-in-promotion/12435/2 "2022-08-30T08:31:14Z")

</div>

Hi @fengjiongmax : can you refer this and see if it helps: [Gitea release plugin - #7 by bradrydzewski](https://drone.discourse.group/t/gitea-release-plugin/11314/7), [drone-gitea-release/plugin.go at 2087ad8457674e14eb905a1369a6553512a4e1f7 · drone-plugins/drone-gitea-release · GitHub](https://github.com/drone-plugins/drone-gitea-release/blob/2087ad8457674e14eb905a1369a6553512a4e1f7/plugin.go#L56and) this doc too: [Promotions | Drone](https://docs.drone.io/promote/)

Do let me know if you are facing any further issues 🙂

---

<div class="post-metadata">

**Author:** ![fengjiongmax](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/fengjiongmax/32/7909_2.png) [@fengjiongmax](https://drone.discourse.group/u/fengjiongmax)\
**Post date:** [August 30, 2022, 9:04am UTC](https://drone.discourse.group/t/plugins-drone-gitea-release-cant-run-this-in-promotion/12435/3 "2022-08-30T09:04:50Z")

</div>

@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](https://github.com/drone-plugins/drone-gitea-release/blob/2087ad8457674e14eb905a1369a6553512a4e1f7/plugin.go#L56)

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

---

<div class="post-metadata">

**Author:** ![Shruthikini](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/shruthikini/32/7942_2.png) [@Shruthikini](https://drone.discourse.group/u/Shruthikini)\
**Post date:** [August 30, 2022, 9:11am UTC](https://drone.discourse.group/t/plugins-drone-gitea-release-cant-run-this-in-promotion/12435/4 "2022-08-30T09:11:39Z")

</div>

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

Thanks!
