summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml4
1 files changed, 3 insertions, 1 deletions
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