Connector Ops CI - Check review requirements #239
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Connector Ops CI - Check review requirements | |
on: | |
pull_request: | |
paths: | |
- "airbyte-integrations/connectors/source-**" | |
pull_request_review: | |
paths: | |
- "airbyte-integrations/connectors/source-**" | |
jobs: | |
check-review-requirements: | |
name: "Check if a review is required from Connector teams" | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'airbytehq/airbyte' }} | |
steps: | |
- name: Checkout Airbyte | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install ci-connector-ops package | |
run: pip install --quiet -e ./tools/ci_connector_ops | |
- name: Write review requirements file | |
id: write-review-requirements-file | |
run: write-review-requirements-file >> $GITHUB_OUTPUT | |
- name: Get mandatory reviewers | |
id: get-mandatory-reviewers | |
run: print-mandatory-reviewers >> $GITHUB_OUTPUT | |
- name: Check if the review requirements are met | |
if: steps.write-review-requirements-file.outputs.CREATED_REQUIREMENTS_FILE == 'true' | |
uses: Automattic/action-required-review@v3 | |
with: | |
status: ${{ steps.get-mandatory-reviewers.outputs.MANDATORY_REVIEWERS }} | |
token: ${{ secrets.OCTAVIA_4_ROOT_ACCESS }} | |
requirements-file: .github/connector_org_review_requirements.yaml | |