Bump pnpm/action-setup from a8198c4bff370c8506180b035930dea56dbd5288 to fc06bc1257f339d1d5d8b3a19a8cae5388b55320 #5
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: blob-size-policy | |
| on: | |
| pull_request: {} | |
| jobs: | |
| check: | |
| name: Blob size policy | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Determine PR comparison range | |
| id: range | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| echo "base=${{ github.event.pull_request.base.sha }}" >> "$GITHUB_OUTPUT" | |
| echo "head=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT" | |
| - name: Check changed blob sizes | |
| env: | |
| BASE_SHA: ${{ steps.range.outputs.base }} | |
| HEAD_SHA: ${{ steps.range.outputs.head }} | |
| run: | | |
| python3 scripts/check_blob_size.py \ | |
| --base "$BASE_SHA" \ | |
| --head "$HEAD_SHA" \ | |
| --max-bytes 512000 \ | |
| --allowlist .github/blob-size-allowlist.txt |