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

ruby-changes:60256

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Mon, 2 Mar 2020 14:53:28 +0900 (JST)
Subject: [ruby-changes:60256] e06ad731f0 (master): .github: less verbose on: specifier

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

From e06ad731f03ab83b72c15f951d7a5a3c8ac4323c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Wed, 26 Feb 2020 12:52:07 +0900
Subject: .github: less verbose on: specifier

The `branch:` specifier was necessary before, to prevent double-testing
master and trunk.  Now that we no longer have trunk, we can slim the
expressions.

See also: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#on

diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 7203db3..dcfc0bd 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -1,11 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L1
 name: macOS
-on:
-  push:
-    branches:
-      - '*'
-  pull_request:
-    branches:
-      - '*'
+on: [push, pull_request]
 jobs:
   make:
     runs-on: macos-latest
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
index 1596ade..508e018 100644
--- a/.github/workflows/mingw.yml
+++ b/.github/workflows/mingw.yml
@@ -1,11 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L1
 name: MinGW
-on:
-  push:
-    branches:
-      - '*'
-  pull_request:
-    branches:
-      - '*'
+on: [push, pull_request]
 
 # Notes:
 # Action ENV TEMP and TMP are short 8.3 paths, but the long path differs.
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml
index d87f4fb..b3d7fd1 100644
--- a/.github/workflows/mjit.yml
+++ b/.github/workflows/mjit.yml
@@ -1,11 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/mjit.yml#L1
 name: MJIT
-on:
-  push:
-    branches:
-      - '*'
-  pull_request:
-    branches:
-      - '*'
+on: [push, pull_request]
 jobs:
   make:
     strategy:
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 9d8e44f..0246689 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -1,11 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L1
 name: Ubuntu
-on:
-  push:
-    branches:
-      - '*'
-  pull_request:
-    branches:
-      - '*'
+on: [push, pull_request]
 jobs:
   make:
     strategy:
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 3e466fd..c2f8f74 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -1,11 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L1
 name: Windows
-on:
-  push:
-    branches:
-      - '*'
-  pull_request:
-    branches:
-      - '*'
+on: [push, pull_request]
 jobs:
   make:
     strategy:
-- 
cgit v0.10.2


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

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