chore(deps): update github-actions versions: Bump actions/upload-artifact from 18bf333cd2249fbbbdb605fd9d9ed57efd7adf34 to 184d73b71b93c222403b2e7f1ffebe4508014249 #21
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: pull-request-lint | |
on: | |
pull_request_target: | |
types: | |
- labeled | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
- edited | |
permissions: read-all | |
jobs: | |
contributorStatement: | |
name: Require Contributor Statement | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
env: | |
PR_BODY: ${{ github.event.pull_request.body }} | |
EXPECTED: By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license. | |
HELP: Contributor statement missing from PR description. Please include the following text in the PR description | |
steps: | |
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 | |
with: | |
script: |- | |
const actual = process.env.PR_BODY.replace(/\r?\n/g, "\n"); | |
const expected = process.env.EXPECTED.replace(/\r?\n/g, "\n"); | |
if (!actual.includes(expected)) { | |
console.log("%j", actual); | |
console.log("%j", expected); | |
core.setFailed(`${process.env.HELP}: ${expected}`); | |
} |