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

jiajunwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c60bed  Update Helix-CI.yml
7c60bed is described below

commit 7c60bedc0daae147e895938e3d7faf1f18bcefb1
Author: Jiajun Wang <[email protected]>
AuthorDate: Fri May 28 20:39:06 2021 -0700

    Update Helix-CI.yml
    
    Fix 2 issues in the CI script.
    1. job run url check conditions are not checked correctly.
    2. Do not create issues in the other forked repos.
---
 .github/workflows/Helix-CI.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/Helix-CI.yml b/.github/workflows/Helix-CI.yml
index a3b042f..3444d79 100644
--- a/.github/workflows/Helix-CI.yml
+++ b/.github/workflows/Helix-CI.yml
@@ -22,7 +22,7 @@ jobs:
       run: mvn -q -fae test
     - name: Upload to Codecov
       run: bash <(curl -s https://codecov.io/bash)
-      if: ${{ github.event_name == 'push' && (success() || failure()) }}
+      if: ${{ github.repository == 'apache/helix' && github.event_name == 
'push' && (success() || failure()) }}
     - name: Print Tests Results
       run: .github/scripts/printTestResult.sh
       if: ${{ success() || failure() }}
@@ -35,7 +35,7 @@ jobs:
           const readline = require('readline');
           
           var run_url = 'Unknown URL. Run ID is ' + context.runId
-          if (process.env.GITHUB_SERVER_URL && process.env.GITHUB_SERVER_URL 
&& process.env.GITHUB_SERVER_URL ) {
+          if (process.env.GITHUB_SERVER_URL && process.env.GITHUB_REPOSITORY 
&& process.env.GITHUB_RUN_ID ) {
             run_url = process.env.GITHUB_SERVER_URL + '/' + 
process.env.GITHUB_REPOSITORY + '/actions/runs/' + process.env.GITHUB_RUN_ID
           }
 
@@ -111,4 +111,4 @@ jobs:
               }
             }
           }
-      if: ${{ success() || failure() }}
+      if: ${{ github.repository == 'apache/helix' && (success() || failure()) 
}}

Reply via email to