You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/06/19 14:56:51 UTC

[echarts] 01/01: chore(ci): don't run workflows on forked repository.

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

wangzx pushed a commit to branch fix/forked-repo-ci
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit 325286c7760da3d1fe5f1adb0440589344dee56c
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Sun Jun 19 22:53:55 2022 +0800

    chore(ci): don't run workflows on forked repository.
---
 .github/workflows/nightly-next.yml   | 1 +
 .github/workflows/nightly.yml        | 1 +
 .github/workflows/source-release.yml | 3 +++
 .github/workflows/stale.yml          | 1 +
 4 files changed, 6 insertions(+)

diff --git a/.github/workflows/nightly-next.yml b/.github/workflows/nightly-next.yml
index a8f1f2a9c..ccb0df47e 100644
--- a/.github/workflows/nightly-next.yml
+++ b/.github/workflows/nightly-next.yml
@@ -11,6 +11,7 @@ on:
 jobs:
   build:
     runs-on: ubuntu-latest
+    if: github.repository_owner == 'apache'
 
     strategy:
       matrix:
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 030044bbb..3de38ff07 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -11,6 +11,7 @@ on:
 jobs:
   build:
     runs-on: ubuntu-latest
+    if: github.repository_owner == 'apache'
 
     strategy:
       matrix:
diff --git a/.github/workflows/source-release.yml b/.github/workflows/source-release.yml
index db4c7e2f7..5fb5a2bec 100644
--- a/.github/workflows/source-release.yml
+++ b/.github/workflows/source-release.yml
@@ -6,6 +6,7 @@ on:
 
 jobs:
   materials:
+    if: github.repository_owner == 'apache'
     runs-on: ubuntu-latest
 
     strategy:
@@ -50,6 +51,7 @@ jobs:
             tmp/materials/*
 
   source:
+    if: github.repository_owner == 'apache'
     runs-on: ubuntu-latest
     needs: materials
 
@@ -103,6 +105,7 @@ jobs:
 
 
   validate-source:
+    if: github.repository_owner == 'apache'
     runs-on: ubuntu-latest
     needs: source
 
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 7f1420b4c..de3b9b738 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -11,6 +11,7 @@ on:
 jobs:
   stale:
     runs-on: ubuntu-latest
+    if: github.repository_owner == 'apache'
     steps:
       - name: Close Stale Issues
         uses: actions/stale@v4


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org