fix: add branch limitation and drop pull_request trigger for ci.yml

This commit is contained in:
JustSong 2024-12-27 20:34:04 +08:00
parent a858292b54
commit d89e9d7e44
6 changed files with 10 additions and 2 deletions

View File

@ -12,8 +12,6 @@ name: CI
# would trigger our jobs twice on pull requests (once from "push" event and once
# from "pull_request->synchronize")
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- 'main'

View File

@ -2,6 +2,8 @@ name: Publish Docker image (English)
on:
push:
branches:
- main
tags:
- 'v*.*.*'
workflow_dispatch:

View File

@ -2,6 +2,8 @@ name: Publish Docker image
on:
push:
branches:
- main
tags:
- 'v*.*.*'
workflow_dispatch:

View File

@ -4,6 +4,8 @@ permissions:
on:
push:
branches:
- main
tags:
- 'v*.*.*'
- '!*-alpha*'

View File

@ -4,6 +4,8 @@ permissions:
on:
push:
branches:
- main
tags:
- 'v*.*.*'
- '!*-alpha*'

View File

@ -4,6 +4,8 @@ permissions:
on:
push:
branches:
- main
tags:
- 'v*.*.*'
- '!*-alpha*'