You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2023/03/21 16:36:32 UTC

[pulsar-site] branch main updated: [improve][ci] Tidy workflow (#484)

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

tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 26af4568413 [improve][ci] Tidy workflow (#484)
26af4568413 is described below

commit 26af4568413e71674c8fb2429c9207cb7344a05e
Author: tison <wa...@gmail.com>
AuthorDate: Wed Mar 22 00:36:25 2023 +0800

    [improve][ci] Tidy workflow (#484)
    
    Signed-off-by: tison <wa...@gmail.com>
---
 .github/actions/check-license-header/action.yml | 31 -------------------------
 .github/workflows/ci-precommit.yml              | 12 ++++++----
 2 files changed, 7 insertions(+), 36 deletions(-)

diff --git a/.github/actions/check-license-header/action.yml b/.github/actions/check-license-header/action.yml
deleted file mode 100644
index 4918ba17f4e..00000000000
--- a/.github/actions/check-license-header/action.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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 header
-description: Check license header for files of the work.
-inputs:
-  config:
-    description: The configuration file
-    required: false
-    default: licenserc.toml
-runs:
-  using: docker
-  image: docker://ghcr.io/korandoru/hawkeye-native:v1
-  args:
-    - check
-    - --config
-    - ${{ inputs.config }}
diff --git a/.github/workflows/ci-precommit.yml b/.github/workflows/ci-precommit.yml
index 88c70a2634f..cbbb77b9193 100644
--- a/.github/workflows/ci-precommit.yml
+++ b/.github/workflows/ci-precommit.yml
@@ -21,15 +21,17 @@ on:
     branches: [main]
 
 jobs:
-  license:
-    name: Check license header
+  check:
+    name: Check
     runs-on: ubuntu-latest
     timeout-minutes: 10
     steps:
       - uses: actions/checkout@v3
-      - uses: ./.github/actions/check-license-header
-        with:
-          config: tools/ci/licenserc.toml
+      - name: Check license header
+        env:
+          IMAGE: ghcr.io/korandoru/hawkeye-native:v1
+          CONFIG: tools/ci/licenserc.toml
+        run: docker run --rm -v $(pwd):/github/workspace ${IMAGE} check --config ${CONFIG}
 
   build-without-push:
     name: Check build site