chore(deps): update docker images: Bump docker/library/python from 589ed66
to a4b2b11
in /samples/document-explorer/client_app
#1048
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: pull-request-lint | |
on: | |
pull_request_target: | |
types: | |
- labeled | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
- edited | |
permissions: read-all | |
jobs: | |
contributorStatement: | |
if: ${{ ! (github.event.pull_request.user.login == 'amazon-auto' || github.event.pull_request.user.login =='dependabot[bot]') }} | |
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@60a0d83039c74a4aee543508d2ffcb1c3799cdea | |
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}`); | |
} |