Bump actions/checkout from 4.1.1 to 4.1.2 #87
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Needs Docs | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
types: [labeled, unlabeled] | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for needs-docs label | |
uses: actions/[email protected] | |
with: | |
script: | | |
const { data: labels } = await github.rest.issues.listLabelsOnIssue({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number | |
}); | |
const needsDocs = labels.find(label => label.name === 'needs-docs'); | |
if (needsDocs) { | |
core.setFailed('Pull request needs docs'); | |
} |