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 # would trigger our jobs twice on pull requests (once from "push" event and once
# from "pull_request->synchronize") # from "pull_request->synchronize")
on: on:
pull_request:
types: [opened, reopened, synchronize]
push: push:
branches: branches:
- 'main' - 'main'

View File

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

View File

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

View File

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

View File

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

View File

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