ci: Check bundle size increases per PR #2
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: 'CI: Size Check' | |
| on: | |
| # Temporary: exercise this workflow on PR #24737 before it exists on develop. | |
| pull_request: | |
| types: [labeled, unlabeled] | |
| permissions: | |
| contents: read | |
| actions: write | |
| pull-requests: read | |
| concurrency: | |
| group: size-check-label-${{ github.event.pull_request.number }}-${{ github.event.label.name }} | |
| cancel-in-progress: true | |
| jobs: | |
| rerun: | |
| if: github.event.pull_request.number == 24737 && github.event.label.name == 'Accept Bundlesize Increase' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Check out PR commit | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| persist-credentials: false | |
| - uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const { default: run } = await import( | |
| `${process.env.GITHUB_WORKSPACE}/scripts/rerun-size-check.mjs` | |
| ); | |
| await run({ github, context, core }); |