You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2019/09/19 07:25:01 UTC

[arrow-site] branch master updated: [GitHub Actions] Always use gh-pages on fork

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

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


The following commit(s) were added to refs/heads/master by this push:
     new f9b925f  [GitHub Actions] Always use gh-pages on fork
f9b925f is described below

commit f9b925ff6241ff930ac053fe70d30fd26748a6af
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Thu Sep 19 15:59:46 2019 +0900

    [GitHub Actions] Always use gh-pages on fork
---
 .github/workflows/deploy.yml | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 7be3317..e9306d7 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -38,13 +38,22 @@ jobs:
           echo "BASE_URL=" >> ../env.sh
           echo "ORIGIN=$(jq .repository.full_name ${GITHUB_EVENT_PATH})" >> ../env.sh
           echo "TARGET_BRANCH=asf-site" >> ../env.sh
-        if: github.event_name == 'push'
-      - name: Configure for GitHub Pages
+        if: |
+          github.event_name == 'push' && github.repository == 'apache/arrow-site'
+      - name: Configure for GitHub Pages on master
+        run: |
+          echo "BASE_URL=$(jq .repository.name ${GITHUB_EVENT_PATH})" >> ../env.sh
+          echo "ORIGIN=$(jq .repository.full_name ${GITHUB_EVENT_PATH})" >> ../env.sh
+          echo "TARGET_BRANCH=gh-pages" >> ../env.sh
+        if: |
+          github.event_name == 'push' && github.repository != 'apache/arrow-site'
+      - name: Configure for GitHub Pages on pull request
         run: |
           echo "BASE_URL=$(jq .pull_request.head.repo.name ${GITHUB_EVENT_PATH})" >> ../env.sh
           echo "ORIGIN=$(jq .pull_request.head.repo.full_name ${GITHUB_EVENT_PATH})" >> ../env.sh
           echo "TARGET_BRANCH=gh-pages" >> ../env.sh
-        if: github.event_name == 'pull_request'
+        if: |
+          github.event_name == 'pull_request'
       - name: Build
         run: |
           . ../env.sh