Repeat execution and Some pipelines are lost

bug1: repeat execution. Update once with gitea edit will execute twice.

How to avoid multiple executions?

bug2: Multiple steps, only the first pipeline works, others are missing

# .drone.yml
kind: pipeline
type: kubernetes
name: CI测试
steps:
- name: 语法检查
  image: alpine
  commands:
  - echo dev
- name: 安全检查
  image: alpine
  commands:
  - echo dev
---
kind: pipeline
type: kubernetes
name: 镜像操作
steps:
- name: 代码review通知
  image: alpine
  commands:
  - echo "代码review通知"
steps:
- name: 构建镜像
  image: alpine
  commands:
  - echo "构建镜像"
steps:
- name: 镜像安全检查
  image: alpine
  commands:
  - echo "镜像安全检查"
---
kind: pipeline
type: kubernetes
name: 测试环境
steps:
- name: 自动化测试
  image: alpine
  commands:
  - echo dev
steps:
- name: 自动化测试2
  image: alpine
  commands:
  - echo dev

add bug2 missing steps

missing steps 自动化测试

Drone executes a pipeline for each webhook it receives from Gitea. If Drone executes multiple builds it means Gitea sent multiple webhooks. Make sure only a single webhook is registered for your repository int he Gitea settings. If you continue to receive multiple webhooks from Gitea, please raise this issue with the Gitea community.

This is not a bug, your yaml is malformed and has the steps block defined multiple times. Please correct your yaml as demonstrated in the below diff:

steps:
  - name: 代码review通知
    image: alpine
    commands:
    - echo "代码review通知"
- steps:
  - name: 构建镜像
    image: alpine
    commands:
    - echo "构建镜像"
- steps:
  - name: 镜像安全检查
    image: alpine
    commands:
    - echo "镜像安全检查"

Thank you.

Maybe there are some problems with Gitea.This issue can be closed

Apparently you need to restart gitea after the first installation.

I leave this in case someone else is trying to figure out what’s happening.