-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automerge dependabot minor issues after functional tests
- Loading branch information
1 parent
b49f233
commit 7c81488
Showing
1 changed file
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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}} |