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: on:
workflow_call: workflow_call:
concurrency:
group: pr-builds-${{ github.event.number }}
cancel-in-progress: true
env: env:
POWERSHELL_TELEMETRY_OPTOUT: 1 POWERSHELL_TELEMETRY_OPTOUT: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_CLI_TELEMETRY_OPTOUT: 1

View file

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