Generate references for actions and workflows #3
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: Pre-Commit Check | |
on: | |
pull_request: | |
jobs: | |
pre-commit-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if Pre-Commit Ran Locally | |
run: | | |
if [ -f .git/COMMIT_EDITMSG ]; then | |
echo "Pre-Commit were not run locally. Please run 'pre-commit run --all-files' locally before committing." | |
exit 1 | |
else | |
echo "Pre-Commit were run locally. Proceeding with the workflow." | |
fi |