Skip to content

Commit

Permalink
Automerge dependabot minor issues after functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert committed Jun 19, 2023
1 parent b49f233 commit 7c81488
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]

- 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}}

0 comments on commit 7c81488

Please sign in to comment.