# 如何忽略tag的push event trigger?

**URL:** <https://forum.gitea.com/t/tag-push-event-trigger/8873>\
**Category:** 中文求助(Chinese Only)\
**Created:** [March 30, 2024, 10:27am UTC](https://forum.gitea.com/t/tag-push-event-trigger/8873 "2024-03-30T10:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mosquito520](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mosquito520/32/4531_2.png) [@mosquito520](https://forum.gitea.com/u/mosquito520)\
**Post date:** [March 30, 2024, 10:27am UTC](https://forum.gitea.com/t/tag-push-event-trigger/8873/1 "2024-03-30T10:27:16Z")

</div>

您好  
我想請問一下  
範例中on: [push] 會對所有的push event觸發actions workflow  
這造成了我打上tag，推上tag到remote會多觸發一次workflow

查了一下  
github action可以透過tags-ignore忽略掉tag push event

> **[Events that trigger workflows - GitHub Docs](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-only-when-a-push-of-specific-tags-occurs)**
>
> You can configure your workflows to run when specific activity on GitHub happens, at a scheduled time, or when an event outside of GitHub occurs.

但gitea只有列在faq當中

> **[Frequently Asked Questions of Gitea Actions | Gitea Documentation](https://docs.gitea.com/usage/actions/faq#what-workflow-trigger-events-does-gitea-support)**
>
> This page contains some common questions and answers about Gitea Actions.

實際測試下列寫法

```auto
on:
  push:
    tags-ignore:
      - '**'

```

連正常的push event都沒觸發workflow  
想請教一下tags-ignore在gitea目前有支援嗎？  
謝謝

---

<div class="post-metadata">

**Author:** ![mosquito520](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mosquito520/32/4531_2.png) [@mosquito520](https://forum.gitea.com/u/mosquito520)\
**Post date:** [March 30, 2024, 1:05pm UTC](https://forum.gitea.com/t/tag-push-event-trigger/8873/2 "2024-03-30T13:05:06Z")

</div>

我在gitea demo site測試了同樣的情境，可以複製出同樣現象  
不確定是我弄錯了什麼還是確實是bug  
如果是bug，我再去開issue

> **[Actions\_Test](https://try.gitea.io/mosquito520/Actions_Test)**
>
> Actions\_Test

Thanks
