npm: bump puppeteer from 13.7.0 to 24.25.0 #2134
Workflow file for this run
This file contains hidden or 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: changelog | |
| on: [label, pull_request] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| script: | | |
| const labels = await github.issues.listLabelsOnIssue({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.payload.pull_request.number, | |
| }); | |
| for (const label of labels.data) { | |
| if (label.name === 'no-changelog-required') { | |
| return; | |
| } | |
| } | |
| const files = await github.pulls.listFiles({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.payload.pull_request.number, | |
| }); | |
| let changeLogPresent = false; | |
| for (const file of files.data) { | |
| if (file.filename === 'CHANGELOG.md') { | |
| changeLogPresent = true; | |
| break; | |
| } | |
| } | |
| if (!changeLogPresent) { | |
| core.setFailed('changelog is required'); | |
| } |