This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 4fbea89f0da02fabccc9eb7b6d74bc50f0be7929 Author: Jarek Potiuk <[email protected]> AuthorDate: Sat Jun 25 11:20:48 2022 +0200 Switch to new selective-checks in label-when-reviewed workflow (#24651) When #24610 was implemented I missed the label-when-reviewed workflow (cherry picked from commit 2703874eb27c85c781f8c20c8a62b3a4e8d8583b) --- .../workflows/label_when_reviewed_workflow_run.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/label_when_reviewed_workflow_run.yml b/.github/workflows/label_when_reviewed_workflow_run.yml index 9b11d71ad2..e818e8411a 100644 --- a/.github/workflows/label_when_reviewed_workflow_run.yml +++ b/.github/workflows/label_when_reviewed_workflow_run.yml @@ -83,20 +83,20 @@ jobs: with: persist-credentials: false submodules: recursive + - name: "Setup python" + uses: actions/setup-python@v2 + with: + # We do not have output from selective checks yet, so we need to hardcode python + python-version: 3.7 + cache: 'pip' + cache-dependency-path: ./dev/breeze/setup* + - run: ./scripts/ci/install_breeze.sh - name: Selective checks id: selective-checks env: - EVENT_NAME: ${{ steps.source-run-info.outputs.sourceEvent }} - TARGET_COMMIT_SHA: ${{ steps.source-run-info.outputs.targetCommitSha }} - PR_LABELS: ${{ steps.source-run-info.outputs.pullRequestLabels }} - run: | - if [[ ${EVENT_NAME} == "pull_request_review" ]]; then - # Run selective checks - ./scripts/ci/selective_ci_checks.sh "${TARGET_COMMIT_SHA}" - else - # Run all checks - ./scripts/ci/selective_ci_checks.sh - fi + PR_LABELS: "${{ steps.source-run-info.outputs.pullRequestLabels }}" + COMMIT_REF: "${{ steps.source-run-info.outputs.targetCommitSha }}" + run: breeze selective-check --github-event-name "${{ steps.source-run-info.outputs.targetCommitSha }}" - name: "Label when approved by committers for PRs that require full tests" uses: ./.github/actions/label-when-approved-action id: label-full-test-prs-when-approved-by-commiters
