Fix PR build concurrency and stop auto assigning reviewers for draft PRs (#5519)

* build: Remove concurrency

It's called by checks anyway.

* Only assign reviewers for PRs that are ready for reviews
This commit is contained in:
TSRBerry 2023-08-06 23:25:02 +02:00 committed by GitHub
parent 6e784e0aca
commit 3ab0a71c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -3,10 +3,6 @@ name: Build job
on:
workflow_call:
concurrency:
group: pr-builds-${{ github.event.number }}
cancel-in-progress: true
env:
POWERSHELL_TELEMETRY_OPTOUT: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1

View File

@ -28,6 +28,7 @@ jobs:
dot: true
- name: Assign reviewers
if: ! github.event.pull_request.draft
run: |
pip3 install PyGithub
python3 .github/update_reviewers.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${{ github.event.pull_request.number }} .github/reviewers.yml