From 94493f8e11f6c4549258e73d20fa6803ace750c8 Mon Sep 17 00:00:00 2001 From: tranch Date: Thu, 20 Aug 2026 07:23:32 +0800 Subject: ci: restrict release creation branches --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ff5963..b42fd60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -224,7 +224,9 @@ jobs: generate_release: name: Generate Release needs: [build_push] - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && + (github.ref_name == github.event.repository.default_branch || + github.ref_name == 'testing') permissions: contents: write secrets: inherit -- cgit v1.2.3