Update publications #32
Workflow file for this run
This file contains hidden or 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 format | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| check-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Check for initials | |
| run: | | |
| if grep -e "- [A-Z]\." -r content/publications/*/index.md -q; then | |
| echo "Names in author meta-data should match the name of the author in the authors folder" | |
| grep -e "- [A-Z]\." -r content/publications/*/index.md | |
| exit 1 | |
| fi | |
| - name: Check folder names | |
| run: | | |
| if [ -n "$(find . -type f -name '* *')" ] | |
| then | |
| echo "Folder names should not contain spaces" | |
| exit 1 | |
| fi | |
| - name: Check publication format | |
| run: | | |
| pip install python-frontmatter textdistance | |
| python scripts/check_publication_format.py |