diff --git a/.github/workflows/dependabot-autoapprove.yaml b/.github/workflows/dependabot-autoapprove.yaml new file mode 100644 index 000000000..007768636 --- /dev/null +++ b/.github/workflows/dependabot-autoapprove.yaml @@ -0,0 +1,14 @@ +name: Auto approve + +on: pull_request_target + +jobs: + auto-approve: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: github.actor == 'dependabot[bot]' + steps: + - uses: hmarr/auto-approve-action@da92209ac68d76fd20af3efa5268a5e8fafb91d9 + with: + github-token: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/dependabot-automerge.yaml b/.github/workflows/dependabot-automerge.yaml new file mode 100644 index 000000000..70f9734ef --- /dev/null +++ b/.github/workflows/dependabot-automerge.yaml @@ -0,0 +1,24 @@ +name: Dependabot auto-merge +# From: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1.1.1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }} + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/pom.xml b/pom.xml index 770537609..7ff46ffd9 100644 --- a/pom.xml +++ b/pom.xml @@ -131,7 +131,7 @@ 3.39.1 20230618 1.2.1 - 21.1.1 + 21.1.2 8.0.22 42.2.20 2.0.7