From: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>
To: git@vger.kernel.org
Cc: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>,
"Jeff Hostetler" <jeffhost@microsoft.com>,
"Johannes Schindelin" <johannes.schindelin@gmx.de>,
"Jeff King" <peff@peff.net>, "Taylor Blau" <me@ttaylorr.com>,
"Junio C Hamano" <gitster@pobox.com>
Subject: [PATCH v3 3/3] fixup! CI: limit GitHub Actions to designated branches
Date: Tue, 5 May 2020 23:26:41 +0700 [thread overview]
Message-ID: <a2e548b683cd584fd686a44e1d7f3473943fc73f.1588695295.git.congdanhqx@gmail.com> (raw)
In-Reply-To: <cover.1588695295.git.congdanhqx@gmail.com>
Here is the patch to for discussion.
Should we want to enable GitHub Action for all repo-s, except git/git
and gitster/git. We'll want to have this patch fix-up to the previous
one.
With this patch merged, contributors will need to opt-out by push to
a branch/tag with "wip" anywhere in the refname.
Note that, integration branches (maint, master, next, jch, pu) will
always be built, regardless of repo.
Since the current condition is ugly enough, and I find it's very hard to
wrap my head around those condition.
Should this patch get fixing up into previous one, please remove the second
paragraph in the body of previous patch.
Thanks.
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
.github/workflows/main.yml | 80 ++++++++++++++++++++++++++++++---
Documentation/SubmittingPatches | 4 +-
2 files changed, 76 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9bba0ce068..81dfa3d228 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -4,12 +4,8 @@ on:
pull_request:
push:
branches:
- - maint
- - master
- - next
- - jch
- - pu
- - 'for-ci**'
+ - '**'
+ - '!**wip**'
tags:
- '**'
- '!**wip**'
@@ -19,6 +15,15 @@ env:
jobs:
windows-build:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
@@ -43,6 +48,15 @@ jobs:
name: windows-artifacts
path: artifacts
windows-test:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
runs-on: windows-latest
needs: [windows-build]
strategy:
@@ -82,6 +96,15 @@ jobs:
name: failed-tests-windows
path: ${{env.FAILED_TEST_ARTIFACTS}}
vs-build:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
env:
MSYSTEM: MINGW64
NO_PERL: 1
@@ -130,6 +153,15 @@ jobs:
name: vs-artifacts
path: artifacts
vs-test:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
runs-on: windows-latest
needs: [vs-build]
strategy:
@@ -166,6 +198,15 @@ jobs:
${{matrix.nr}} 10 t[0-9]*.sh)
"@
regular:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
strategy:
matrix:
vector:
@@ -201,6 +242,15 @@ jobs:
name: failed-tests-${{matrix.vector.jobname}}
path: ${{env.FAILED_TEST_ARTIFACTS}}
dockerized:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
strategy:
matrix:
vector:
@@ -225,6 +275,15 @@ jobs:
name: failed-tests-${{matrix.vector.jobname}}
path: ${{env.FAILED_TEST_ARTIFACTS}}
static-analysis:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
env:
jobname: StaticAnalysis
runs-on: ubuntu-latest
@@ -233,6 +292,15 @@ jobs:
- run: ci/install-dependencies.sh
- run: ci/run-static-analysis.sh
documentation:
+ if: >-
+ ${{
+ (github.repository_owner != 'git' && github.repository_owner != 'gitster') ||
+ github.ref == 'refs/heads/maint' ||
+ github.ref == 'refs/heads/master' ||
+ github.ref == 'refs/heads/next' ||
+ github.ref == 'refs/heads/jch' ||
+ github.ref == 'refs/heads/pu'
+ }}
env:
jobname: Documentation
runs-on: ubuntu-latest
diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index e516b080df..a2e6a3d2ca 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -79,8 +79,8 @@ test your changes on Linux, Mac (and hopefully soon Windows). See
GitHub-Travis CI hints section for details.
Alternately, you can use GitHub Actions (which supports testing your changes
-on Linux, macOS, and Windows) by pushing into a branch whose name starts
-with "for-ci", or a tag whose name doesn't have `wip`,
+on Linux, macOS, and Windows) by pushing into a branch or tag
+whose name doesn't have `wip`,
or opening a GitHub's Pull Request against
https://github.com/git/git.git or a fork of that repository.
--
2.26.2.672.g232c24e857
next prev parent reply other threads:[~2020-05-05 16:27 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-02 15:08 [PATCH] ci: respect the [skip ci] convention in our GitHub workflow "CI/PR" Johannes Schindelin via GitGitGadget
2020-05-03 9:36 ` Jeff King
2020-05-03 12:05 ` Danh Doan
2020-05-04 15:01 ` Jeff King
2020-05-04 15:49 ` [PATCH v2 0/2] Limit GitHub Actions to designated branches Đoàn Trần Công Danh
2020-05-04 15:49 ` [PATCH v2 1/2] CI: limit " Đoàn Trần Công Danh
2020-05-04 16:23 ` Jeff King
2020-05-04 21:58 ` Taylor Blau
2020-05-04 22:52 ` Junio C Hamano
2020-05-04 23:15 ` Taylor Blau
2020-05-04 23:35 ` Jeff King
2020-05-05 0:24 ` Junio C Hamano
2020-05-04 23:36 ` Jeff King
2020-05-05 0:20 ` Taylor Blau
2020-05-05 16:43 ` Jeff King
2020-05-05 17:57 ` Junio C Hamano
2020-05-05 18:24 ` Jeff King
2020-05-05 21:04 ` Jeff King
2020-05-05 21:29 ` Junio C Hamano
2020-05-05 21:58 ` Jeff King
2020-05-05 22:28 ` Junio C Hamano
2020-05-06 15:09 ` Johannes Schindelin
2020-05-06 16:26 ` Junio C Hamano
2020-05-07 12:17 ` Jeff King
2020-05-07 14:02 ` Jeff King
2020-05-07 18:17 ` Junio C Hamano
2020-05-07 12:01 ` Đoàn Trần Công Danh
2020-05-07 12:47 ` Đoàn Trần Công Danh
2020-05-06 0:46 ` Đoàn Trần Công Danh
2020-05-06 3:56 ` Junio C Hamano
2020-05-06 14:25 ` Đoàn Trần Công Danh
2020-05-06 16:31 ` Junio C Hamano
2020-05-07 12:25 ` Jeff King
2020-05-07 18:29 ` Junio C Hamano
2020-05-07 18:54 ` Jeff King
2020-05-07 19:33 ` Junio C Hamano
2020-05-07 16:20 ` [PATCH v2] ci: allow per-branch config for GitHub Actions Jeff King
2020-05-07 17:00 ` Taylor Blau
2020-05-07 17:18 ` Jeff King
2020-05-07 19:53 ` Junio C Hamano
2020-05-07 20:46 ` Jeff King
2020-05-07 21:58 ` Junio C Hamano
2020-05-08 18:00 ` Jeff King
2020-05-09 1:23 ` Đoàn Trần Công Danh
2020-05-05 0:34 ` [PATCH v2 1/2] CI: limit GitHub Actions to designated branches Đoàn Trần Công Danh
2020-05-04 15:49 ` [PATCH v2 2/2] SubmittingPatches: advertise GitHub Actions CI Đoàn Trần Công Danh
2020-05-04 16:37 ` Junio C Hamano
2020-05-05 0:46 ` Đoàn Trần Công Danh
2020-05-05 16:26 ` [PATCH v3 0/3] Provide option to opt in/out GitHub Actions Đoàn Trần Công Danh
2020-05-05 16:26 ` [PATCH v3 1/3] SubmittingPatches: advertise GitHub Actions CI Đoàn Trần Công Danh
2020-05-05 16:47 ` Jeff King
2020-05-05 16:59 ` Đoàn Trần Công Danh
2020-05-05 17:07 ` Jeff King
2020-05-05 16:26 ` [PATCH v3 2/3] CI: limit GitHub Actions to designated branches Đoàn Trần Công Danh
2020-05-05 16:51 ` Jeff King
2020-05-05 17:05 ` Đoàn Trần Công Danh
2020-05-05 17:11 ` Jeff King
2020-05-05 18:49 ` Junio C Hamano
2020-05-05 16:26 ` Đoàn Trần Công Danh [this message]
2020-05-05 18:59 ` [PATCH v3 3/3] fixup! " Junio C Hamano
2020-05-05 17:01 ` [PATCH v3 0/3] Provide option to opt in/out GitHub Actions Jeff King
2020-05-03 16:46 ` [PATCH] ci: respect the [skip ci] convention in our GitHub workflow "CI/PR" Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2e548b683cd584fd686a44e1d7f3473943fc73f.1588695295.git.congdanhqx@gmail.com \
--to=congdanhqx@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jeffhost@microsoft.com \
--cc=johannes.schindelin@gmx.de \
--cc=me@ttaylorr.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).