Upgrade deps #4
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: "Check PR Description for Required Keywords" | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
branches: | |
- main | |
jobs: | |
check-description: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check PR description for required keywords" | |
env: | |
PR_BODY: ${{ github.event.pull_request.body }} | |
run: | | |
echo "Checking PR description for required keywords..." | |
if [[ ! "$PR_BODY" =~ (Hotfix|Improvement|Added) ]]; then | |
echo "ERROR: Pull request description must contain one of the following words: 'Hotfix', 'Improvement', 'Added'." | |
exit 1 | |
fi | |
echo "PR description contains a required keyword." |