Skip to content

Bump org.eclipse.jdt:org.eclipse.jdt.core from 3.23.0 to 3.47.0 #151

Bump org.eclipse.jdt:org.eclipse.jdt.core from 3.23.0 to 3.47.0

Bump org.eclipse.jdt:org.eclipse.jdt.core from 3.23.0 to 3.47.0 #151

name: Dependabot auto-approve and auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
# Who opened the pull request, not who triggered this run: github.actor is whoever caused the event,
# and a run that Dependabot triggers on someone else's pull request would pass an actor check.
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve patch and minor updates
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for all PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.BOT_PAT }}