diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36c584d5..1cb904eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,7 @@ jobs: strategy: fail-fast: false matrix: - hibernate: [ "6.0.2.Final", "6.1.5.Final" ] + hibernate: [ "6.0.2.Final", "6.1.7.Final" ] steps: - uses: actions/checkout@v2 @@ -138,3 +138,25 @@ jobs: **/target/surefire-reports **/target/jacoco.exec + dependabot: + name: Merge dependabot + runs-on: ubuntu-latest + needs: hibernate-test + permissions: + contents: write + pull-requests: write + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - name: Dependabot metadata + id: dependabot-metadata + uses: dependabot/fetch-metadata@v1.3.1 + + - name: Approve patch and minor updates + if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'}} + run: | + gh pr merge --auto --merge "$PR_URL" + gh pr review $PR_URL --approve -b "I'm **approving** this pull request because **it includes a patch or minor update**" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}