Skip to content

Commit

Permalink
Switch to new selective-checks in label-when-reviewed workflow (apach…
Browse files Browse the repository at this point in the history
…e#24651)

When apache#24610 was implemented I missed the label-when-reviewed workflow

(cherry picked from commit 2703874)
  • Loading branch information
potiuk committed Jun 29, 2022
1 parent d52eeaf commit 4fbea89
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/label_when_reviewed_workflow_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fbea89

Please sign in to comment.