[자동차 경주] 김성규 과제 제출합니다. #63
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 No sys.exit() | |
on: pull_request | |
jobs: | |
check-no-sys-exit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Ensure sys.exit() is not used | |
run: | | |
if grep -r 'sys.exit()' src/; then | |
echo "❌ sys.exit() is not allowed!" | |
exit 1 | |
fi |