[前][次][番号順一覧][スレッド一覧]

ruby-changes:67495

From: Keiko <ko1@a...>
Date: Tue, 31 Aug 2021 19:08:13 +0900 (JST)
Subject: [ruby-changes:67495] e841042070 (master): [rubygems/rubygems] Add missing key `branches:`

https://git.ruby-lang.org/ruby.git/commit/?id=e841042070

From e841042070357794ba9a73c685b98381f9ba6f80 Mon Sep 17 00:00:00 2001
From: Keiko Kaneko <keiko.cda@g...>
Date: Sat, 28 Aug 2021 14:18:39 +0900
Subject: [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
---
 lib/bundler/templates/newgem/github/workflows/main.yml.tt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bundler/templates/newgem/github/workflows/main.yml.tt b/lib/bundler/templates/newgem/github/workflows/main.yml.tt
index 83ddea2..952cd64 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 https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/github/workflows/main.yml.tt#L2
 
 on:
   push:
-    - <%= config[:git_default_branch] %>
+    branches:
+      - <%= config[:git_default_branch] %>
 
   pull_request:
 
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]