You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2021/05/10 12:48:34 UTC

[daffodil-site] branch master updated: Only publish site updates from the master branch

This is an automated email from the ASF dual-hosted git repository.

slawrence pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/daffodil-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 89549e7  Only publish site updates from the master branch
89549e7 is described below

commit 89549e7f8d13be719c26b90e804810541fa42662
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Mon May 10 07:18:25 2021 -0400

    Only publish site updates from the master branch
    
    We currently enable the publish action when commits are made directly to
    the apache/daffodil-site repo. This prevents publishing pull requests
    until they are merged. However, if we push a branch directly to
    apache/daffodil-site for a pull request rather than a fork, then this
    action is still triggered, and we will publish from the branch. We don't
    want that. We only want to ever publish commits made to the master
    branch of the apache/daffodil repo. This fixes that.
---
 .github/workflows/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8d9544f..b8d9e24 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -54,7 +54,7 @@ jobs:
           jekyll build --source site
 
       - name: Publish
-        if: github.repository == 'apache/daffodil-site'
+        if: ${{ github.repository == 'apache/daffodil-site' && github.ref == 'refs/heads/master' }}
         run: |
           git checkout asf-site
           rm -rf content