Update dependency invoke to v3 #13237
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: Check PR title and description for CI skip tags | |
| on: | |
| pull_request: | |
| types: [opened,edited] | |
| jobs: | |
| check_pr_content: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check PR title and description for CI skip tags | |
| env: | |
| TITLE: ${{ github.event.pull_request.title }} | |
| DESCRIPTION: ${{ github.event.pull_request.body }} | |
| run: | | |
| shopt -s nocasematch | |
| SKIP_CI_PATTERN='\[(ci skip|skip ci|actions skip|skip actions|no ci)\]|skip-checks:[[:space:]]*true' | |
| if [[ "$TITLE" =~ $SKIP_CI_PATTERN ]]; then | |
| echo "error: The PR title contains ci skip tags." >&2 | |
| exit 1 | |
| fi | |
| if [[ "$DESCRIPTION" =~ $SKIP_CI_PATTERN ]]; then | |
| echo "error: The PR description contains ci skip tags." >&2 | |
| exit 1 | |
| fi | |
| echo "success: No ci skip tags found." | |
| exit 0 |