Skip to content
Permalink
Browse files
Switch to new selective-checks in label-when-reviewed workflow (#24651)
When #24610 was implemented I missed the label-when-reviewed workflow
  • Loading branch information
potiuk committed Jun 25, 2022
1 parent d7bd72f commit 2703874eb27c85c781f8c20c8a62b3a4e8d8583b
Showing 1 changed file with 11 additions and 11 deletions.
@@ -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

0 comments on commit 2703874

Please sign in to comment.