db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject [db-jdo-site] 01/01: Simplify workflow branch rule
Date Thu, 25 Feb 2021 17:53:29 GMT
This is an automated email from the ASF dual-hosted git repository.

tobous pushed a commit to branch simplify-workflow-branch-rule
in repository https://gitbox.apache.org/repos/asf/db-jdo-site.git

commit 9947c6e72097d60ec8563bc5be899ae5959b89cd
Author: Tobias Bouschen <tobias.bouschen@googlemail.com>
AuthorDate: Thu Feb 25 18:34:32 2021 +0100

    Simplify workflow branch rule
    
    Simplifies the deploy workflow branch rule by switching to specifying
    which branches to run on.
    
    I previously thought that 'branch' and 'path' rules were compared with
    an OR operator. From my new tests, this does not seem to be the case.
    Instead, they are compared with the AND operator, allowing for this
    simplified configuration.
---
 .github/workflows/deploy-site.yml | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml
index fb0e7a9..687bac8 100644
--- a/.github/workflows/deploy-site.yml
+++ b/.github/workflows/deploy-site.yml
@@ -8,13 +8,11 @@ name: Build & Deploy Site
 # Conditions necessary to trigger a build
 on:
   push:
-    # Ignore pushes on all branches by default
-    # Branches that should trigger a build must be explicitly excluded from the ignore using
'!BRANCH_NAME'
+    # Only run for pushes to the following branches
     #
-    # Excluding the branch that is pushed by this action will lead to an infinite loop
-    branches-ignore:
-      - '**'
-      - '!master'
+    # Including the branch that is pushed by this action will lead to an infinite loop
+    branches:
+      - 'master'
 
     # Only build if a file in one of these paths has been changed
     paths:


Mime
View raw message