summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/templates/newgem/github/workflows/main.yml.tt6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/github/workflows/main.yml.tt b/lib/bundler/templates/newgem/github/workflows/main.yml.tt
index 654978033f..2a6c505cfd 100644
--- a/lib/bundler/templates/newgem/github/workflows/main.yml.tt
+++ b/lib/bundler/templates/newgem/github/workflows/main.yml.tt
@@ -1,6 +1,10 @@
name: Ruby
-on: [push,pull_request]
+on:
+ push:
+ - <%= config[:git_default_branch] %>
+
+ pull_request:
jobs:
build: