Browse Source

👷 Update permissions and config for labeler GitHub Action (#12008)

pull/12016/head
Sebastián Ramírez 8 months ago
committed by GitHub
parent
commit
7c6e70a0c7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 19
      .github/workflows/label-checker.yml
  2. 4
      .github/workflows/labeler.yml

19
.github/workflows/label-checker.yml

@ -1,19 +0,0 @@
name: Label Checker
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
jobs:
check_labels:
name: Check labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
repo_token: ${{ secrets.GITHUB_TOKEN }}

4
.github/workflows/labeler.yml

@ -19,6 +19,10 @@ jobs:
- uses: actions/labeler@v5
# Run this after labeler applied labels
check-labels:
needs:
- labeler
permissions:
pull-requests: read
name: Check labels
runs-on: ubuntu-latest
steps:

Loading…
Cancel
Save