summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeiko Kaneko <keiko.cda@gmail.com>2021-08-28 14:18:39 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commite841042070357794ba9a73c685b98381f9ba6f80 (patch)
tree76a8b3d4c862c7ed8e94a0925cffc31341cd6876
parentceba8668642ae9567c0952724217073462fee9a8 (diff)
[rubygems/rubygems] Add missing key `branches:`
ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags Running jobs with only branch name, without `branches:`, CI fails https://github.com/rubygems/rubygems/commit/fcec167d61
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
-rw-r--r--lib/bundler/templates/newgem/github/workflows/main.yml.tt3
1 files changed, 2 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 83ddea25dc..952cd649a2 100644
--- a/lib/bundler/templates/newgem/github/workflows/main.yml.tt
+++ b/lib/bundler/templates/newgem/github/workflows/main.yml.tt
@@ -2,7 +2,8 @@ name: Ruby
on:
push:
- - <%= config[:git_default_branch] %>
+ branches:
+ - <%= config[:git_default_branch] %>
pull_request: