Adds a collection of documents to help self-migrators #24
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 Case | |
on: | |
pull_request: | |
types: [opened, edited, reopened] | |
jobs: | |
check-case: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check Case | |
run: | | |
for OUTPUT in $(find ./src -type d) | |
do | |
echo $OUTPUT | |
if [[ $OUTPUT =~ [A-Z] ]] | |
then | |
echo "fail=true" >> $GITHUB_ENV | |
echo $OUTPUT | |
fi | |
done | |
- name: validate | |
if: env.fail | |
uses: mshick/add-pr-comment@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
message: | | |
:warning: **WARNING**: Your pull request has invalid capitalization. |