Skip to content

Bump codecov/codecov-action from 4.6.0 to 5.0.0 #1992

Bump codecov/codecov-action from 4.6.0 to 5.0.0

Bump codecov/codecov-action from 4.6.0 to 5.0.0 #1992

name: pull_request_labels
on:
pull_request:
types: [opened, reopened, edited, labeled, unlabeled]
jobs:
opened:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check there's at least one label
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
shell: pwsh
run: |
$count = [int] (gh pr view $env:PR_NUMBER --json labels --jq '.labels | length')
if ($count -eq 0) {
throw "No labels found"
}