You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/03/29 15:08:58 UTC
[camel] branch main updated: (chores) ci: added automated check for component changes
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 5437ced (chores) ci: added automated check for component changes
5437ced is described below
commit 5437ced7cbd97e0517ea3c8639c90658e261805d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Mar 29 17:06:25 2022 +0200
(chores) ci: added automated check for component changes
---
.github/workflows/component-pr.yaml | 51 +++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/.github/workflows/component-pr.yaml b/.github/workflows/component-pr.yaml
new file mode 100644
index 0000000..e9ec00b
--- /dev/null
+++ b/.github/workflows/component-pr.yaml
@@ -0,0 +1,51 @@
+#
+# 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: component check
+
+on:
+ pull_request_target:
+ branches:
+ - main
+ types:
+ - opened
+ - edited
+ - synchronize
+ paths:
+ - 'components/*'
+
+jobs:
+ process:
+ name: Process
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/github-script@v6
+ env:
+ RESULT: ${{ steps.quick-test.outputs.result }}
+ COUNT: ${{ steps.quick-test.outputs.count }}
+ with:
+ github-token: ${{inputs.github-token}}
+ script: |
+ const { RESULT, COUNT } = process.env
+
+ github.rest.issues.createComment({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ body: `This PR changes components and will be tested automatically`
+ })