mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
CI for py-ingestion-core comment workflow (#2252)
Part 1 of the py-ingestion-publish CI revamp. This will comment on PR's opened with schema changes and let the Pull requestor notify of version bump to publish dev package in test.pypi.org. See #2239 and #2240 for reference.
This commit is contained in:
parent
7181141803
commit
6350cbb68b
40
.github/workflows/openmetadata-ingestion-core-version-comment.yml
vendored
Normal file
40
.github/workflows/openmetadata-ingestion-core-version-comment.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
# Copyright 2021 Collate
|
||||
# Licensed 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: OpenMetadata Ingestion Core Version Check Comment
|
||||
|
||||
# read-write repo token
|
||||
# access to secrets
|
||||
on:
|
||||
pull_request_target:
|
||||
branches: [ main ]
|
||||
types: [ opened ]
|
||||
paths:
|
||||
- 'catalog-rest-service/src/main/resources/json/**'
|
||||
|
||||
jobs:
|
||||
py-ingestion-core-comment:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Create a comment in the PR with the instructions
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
issue-number: ${{ github.event.pull_request.number }}
|
||||
body: |
|
||||
**Schema Change Detected. Needs py-ingestion-core version bump**
|
||||
|
||||
Please run `make bump-version-dev` in the ingestion-core folder of your repository and commit the changes to _version.py in this PR. Please ignore if this has been handled already.
|
||||
Loading…
x
Reference in New Issue
Block a user