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

zhangzp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-ml.git


The following commit(s) were added to refs/heads/master by this push:
     new 82e2f18  [hotfix] Improve nightly build Github actions
82e2f18 is described below

commit 82e2f183a881e325280aab37e131066745c61e49
Author: Dong Lin <lindon...@gmail.com>
AuthorDate: Tue Dec 13 10:59:44 2022 +0800

    [hotfix] Improve nightly build Github actions
    
    This closes #190.
---
 .github/workflows/{java8-build.yml => java-tests.yml}     | 11 +++++++++--
 .github/workflows/{python-checks.yml => python-tests.yml} |  7 ++++---
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/java8-build.yml 
b/.github/workflows/java-tests.yml
similarity index 87%
rename from .github/workflows/java8-build.yml
rename to .github/workflows/java-tests.yml
index a593520..e54a469 100644
--- a/.github/workflows/java8-build.yml
+++ b/.github/workflows/java-tests.yml
@@ -13,12 +13,19 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-name: Java 8 Build
+name: Java Tests
 
-on: [push, pull_request]
+on:
+  schedule:
+    - cron: '0 0 * * *'
+  push:
+    branches: [ '**' ]
+  pull_request:
+    branches: [ '**' ]
 
 jobs:
   java-tests:
+    if: (github.repository == 'apache/flink-ml')
     runs-on: ubuntu-latest
     strategy:
       matrix:
diff --git a/.github/workflows/python-checks.yml 
b/.github/workflows/python-tests.yml
similarity index 93%
rename from .github/workflows/python-checks.yml
rename to .github/workflows/python-tests.yml
index dba36bc..bdc8b01 100644
--- a/.github/workflows/python-checks.yml
+++ b/.github/workflows/python-tests.yml
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-name: Python Checks
+name: Python Tests
 
 on:
   schedule:
@@ -24,8 +24,9 @@ on:
     branches: [ '**' ]
 
 jobs:
-  tests:
-    name: python ${{ matrix.python-version }} tests on ${{ matrix.os }}
+  python-tests:
+    if: (github.repository == 'apache/flink-ml')
+    name: Python ${{ matrix.python-version }} tests on ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:

Reply via email to