chore(deps)(deps): bump astro from 5.18.1 to 5.18.2 in the runtime-deps group #16
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: Dependabot Auto-Merge | |
| on: pull_request | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| auto-merge: | |
| if: github.actor == 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch Dependabot metadata | |
| id: meta | |
| uses: dependabot/fetch-metadata@v3 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Block auto-merge when ANY dep in the PR is a major bump. | |
| # `dependency-major-versions-changed` is non-empty when ANY dep in | |
| # a grouped PR has a major bump, even if `update-type` (which only | |
| # reflects the first dep in the group) says "minor". | |
| # | |
| # Incident reference (2026-05-04): grouped runtime-deps PR in | |
| # Operational-Dashboard included astro 5→6, tailwind 3→4, TS 5→6. | |
| # Old check evaluated `semver-minor` true on the first entry and | |
| # merged the whole batch. CF Workers Build then rejected the tree. | |
| - name: Enable auto-merge for non-major bumps only | |
| if: | | |
| (steps.meta.outputs.update-type == 'version-update:semver-patch' | |
| || steps.meta.outputs.update-type == 'version-update:semver-minor') | |
| && steps.meta.outputs.dependency-major-versions-changed == '' | |
| run: gh pr merge --squash --auto "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Major bumps need hand review. Label so they don't sit silently. | |
| # `|| true` because the label may not exist in the repo yet — that | |
| # shouldn't fail the workflow, the auto-merge skip already protects. | |
| - name: Label major-version PRs for hand review | |
| if: steps.meta.outputs.dependency-major-versions-changed != '' | |
| run: gh pr edit "$PR_URL" --add-label "needs-review,major-version" || true | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |