Skip to content

Add a TotalProcessorCount API that returns the total number of logical processors on the machine #34652

Add a TotalProcessorCount API that returns the total number of logical processors on the machine

Add a TotalProcessorCount API that returns the total number of logical processors on the machine #34652

name: Label PRs
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
jobs:
add-labels:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write # Update labels on PRs (might not be necessary, but we call the UpdateIssue API so...)
pull-requests: write # Update labels on PRs
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: global.json
- name: "Add labels"
if: github.event.action != 'labeled'
run: ./tracer/build.sh AssignLabelsToPullRequest
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PullRequestNumber: "${{ github.event.pull_request.number }}"
- name: "Validate PR has labels"
run: ./tracer/build.sh ValidatePrLabels
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PullRequestNumber: "${{ github.event.pull_request.number }}"