Move "team:viewer" label action to labeler.yaml.

This avoids the need for a separate job step.
master
Nat Goodspeed 2024-01-12 15:36:45 -05:00 committed by nat-goodspeed
parent 0730681b8a
commit e2ba2f9c45
2 changed files with 3 additions and 15 deletions

View File

@ -76,3 +76,6 @@ c/cpp:
- '**/*.i'
- '**/*.inl'
- '**/*.y'
'team:viewer':
- '*'

View File

@ -13,18 +13,3 @@ jobs:
with:
configuration-path: .github/labeler.yaml
repo-token: "${{ secrets.GITHUB_TOKEN }}"
label-pr:
if:
${{ github.event_name == 'opened' &&
github.event.pull_request.head.repo.owner.login == 'secondlife' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- run: gh pr edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: "team:viewer"