From d89e9d7e446978395f3f436981573caee15fd40d Mon Sep 17 00:00:00 2001 From: JustSong Date: Fri, 27 Dec 2024 20:34:04 +0800 Subject: [PATCH] fix: add branch limitation and drop pull_request trigger for ci.yml --- .github/workflows/ci.yml | 2 -- .github/workflows/docker-image-en.yml | 2 ++ .github/workflows/docker-image.yml | 2 ++ .github/workflows/linux-release.yml | 2 ++ .github/workflows/macos-release.yml | 2 ++ .github/workflows/windows-release.yml | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3034a54767..3f854868e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' diff --git a/.github/workflows/docker-image-en.yml b/.github/workflows/docker-image-en.yml index 30cd0e3815..172552bab6 100644 --- a/.github/workflows/docker-image-en.yml +++ b/.github/workflows/docker-image-en.yml @@ -2,6 +2,8 @@ name: Publish Docker image (English) on: push: + branches: + - main tags: - 'v*.*.*' workflow_dispatch: diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 56f1d6ad57..944b3e5dd5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,6 +2,8 @@ name: Publish Docker image on: push: + branches: + - main tags: - 'v*.*.*' workflow_dispatch: diff --git a/.github/workflows/linux-release.yml b/.github/workflows/linux-release.yml index 161c41e39a..36a8326f23 100644 --- a/.github/workflows/linux-release.yml +++ b/.github/workflows/linux-release.yml @@ -4,6 +4,8 @@ permissions: on: push: + branches: + - main tags: - 'v*.*.*' - '!*-alpha*' diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index 94b3e47b05..dc5cf08d0d 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -4,6 +4,8 @@ permissions: on: push: + branches: + - main tags: - 'v*.*.*' - '!*-alpha*' diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 18641ae843..a96b334f36 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -4,6 +4,8 @@ permissions: on: push: + branches: + - main tags: - 'v*.*.*' - '!*-alpha*'