chore(deps): bump next from 15.5.18 to 16.2.12 #1152
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: | |
| dependabot: | |
| name: Dependabot Auto-Merge | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' | |
| steps: | |
| - name: Dependabot Metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@v3 | |
| with: | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Auto-Merge Dependabot PR | |
| if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' | |
| run: | | |
| # Wait a bit for any checks to start | |
| sleep 30 | |
| # Check if all required checks have passed | |
| if gh pr view "$PR_URL" --json statusCheckRollup --jq '.statusCheckRollup | all(.conclusion == "SUCCESS")'; then | |
| echo "All checks passed, merging..." | |
| gh pr merge --squash "$PR_URL" | |
| elif gh pr view "$PR_URL" --json statusCheckRollup --jq '.statusCheckRollup | length == 0'; then | |
| echo "No status checks required, merging..." | |
| gh pr merge --squash "$PR_URL" | |
| else | |
| echo "Status checks not passed, skipping merge" | |
| gh pr view "$PR_URL" --json statusCheckRollup | |
| fi | |
| env: | |
| PR_URL: ${{github.event.pull_request.html_url}} | |
| GH_TOKEN: ${{secrets.AUTO_MERGE_PAT}} |