Skip to content

Commit

Permalink
ci: use shared labels workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
boundlesscalm committed Feb 12, 2024
1 parent 3514ff7 commit 1bf3c1d
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,11 @@ on:
- opened
- labeled
- unlabeled
- synchronize
branches:
- main

jobs:
check_labels:
runs-on: ubuntu-latest
steps:
- name: 'Required "doc required" or "doc not required" label'
if: >
contains(github.event.pull_request.labels.*.name, 'doc required') == false &&
contains(github.event.pull_request.labels.*.name, 'doc not required') == false
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Make sure to add the "doc required" or "doc not required" label. '
})
core.setFailed('Required "doc required" or "doc not required" label')
uses: NordicSemiconductor/pc-nrfconnect-shared/.github/workflows/labels.yml@main
secrets: inherit

0 comments on commit 1bf3c1d

Please sign in to comment.