Move config-checking code out of invoker #438
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 TODO comments | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
check-todo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Check for TODO comments | |
run: | | |
MATCHES=$(grep -r -n --exclude-dir=.git --exclude-dir=.github "# TODO" . || true) | |
if [ ! -z "$MATCHES" ]; then | |
echo "Found TODO comments:" | |
echo "$MATCHES" | |
exit 1 | |
fi |