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

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


The following commit(s) were added to refs/heads/master by this push:
     new ca064d3  Add check-license to enable strict on master branch (#16366)
ca064d3 is described below

commit ca064d3073d7808263fd4f53683486957385c933
Author: 吴伟杰 <[email protected]>
AuthorDate: Fri Mar 25 16:28:28 2022 +0800

    Add check-license to enable strict on master branch (#16366)
    
    * Add check-license to enable strict on master branch
    
    * Move check-license to new workflow
    
    * Remove unused comments
---
 .asf.yaml                           |  2 ++
 .github/workflows/check-license.yml | 36 ++++++++++++++++++++++++++++++++++++
 .github/workflows/ci.yml            |  7 -------
 3 files changed, 38 insertions(+), 7 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 81322e6..c09298d 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -46,6 +46,8 @@ github:
     master:
       required_status_checks:
         strict: true
+        contexts:
+          - check-license
       required_pull_request_reviews:
         dismiss_stale_reviews: true
         required_approving_review_count: 1
diff --git a/.github/workflows/check-license.yml 
b/.github/workflows/check-license.yml
new file mode 100644
index 0000000..b6fa938
--- /dev/null
+++ b/.github/workflows/check-license.yml
@@ -0,0 +1,36 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: check-license
+
+on:
+  pull_request:
+    branches: [ master ]
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  check-license:
+    name: check-license
+    timeout-minutes: 10
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Check License Header
+        uses: apache/skywalking-eyes@main
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a9f791d..f078881 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,13 +40,6 @@ env:
   MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3
 
 jobs:
-  check-license:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v2
-      - name: Check License Header
-        uses: apache/skywalking-eyes@main
-  
   windows:
     runs-on: windows-latest
     timeout-minutes: 60

Reply via email to