Add post: 2026-03-04-pyinfra-dev-pyinfra.md #10601
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: Pattern Guard | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| paths: | ||
| - 'docs/**' | ||
| - '.github/workflows/pattern-guard.yml' | ||
| pull_request: | ||
| paths: | ||
| - 'docs/**' | ||
| jobs: | ||
| guard: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Start timer | ||
| run: echo "START=$EPOCHSECONDS" >> $GITHUB_ENV | ||
| - uses: actions/checkout@v4 | ||
| - name: Disallow relative_url | absolute_url chain in docs/ | ||
| run: | | ||
| ! rg -n "\|\s*relative_url\s*\|\s*absolute_url" docs || (echo "Found disallowed relative_url|absolute_url chain" && exit 1) | ||
| - name: Disallow double baseurl in paths | ||
| run: | | ||
| ! rg -n "/repo_posts/repo_posts/" docs || (echo "Found duplicated baseurl in path" && exit 1) | ||
| - name: Job runtime | ||
| if: always() | ||
| run: echo "Job runtime: $(( (EPOCHSECONDS-START+59)/60 )) min" >> $GITHUB_STEP_SUMMARY | ||