Irene hdmap #287
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: Block watod-config.sh changes | |
| on: [pull_request] | |
| jobs: | |
| guard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # we need full history for diff | |
| - name: Fail PR when watod-config.sh differs from base | |
| run: | | |
| base_sha="${{ github.event.pull_request.base.sha }}" | |
| if git diff --name-only "$base_sha"...HEAD | grep -q '^watod-config\.sh$'; then | |
| echo "::error file=watod-config.sh::watod-config.sh is protected. Use watod-config.local.sh instead." | |
| exit 1 | |
| fi |