Skip to content

Commit

Permalink
Allow for automatic merging of dependabot changes after checks pass (o…
Browse files Browse the repository at this point in the history
…pensearch-project#3408)

### Description
Allow for automatic merging of dependabot changes after checks pass

### Issues Resolved
- Related opensearch-project/OpenSearch#10211

### Check List
- [ ] New functionality includes testing
- [ ] New functionality has been documented
- [X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied authored Sep 26, 2023
1 parent 22f00fa commit ab891d0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/automatic-merges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: automatic-merges

on:
workflow_run:
workflows:
- CI
- Plugin Install
- Code Hygiene
types: completed

jobs:
automatic-merge-version-bumps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: find-triggering-pr
uses: peternied/find-triggering-pr@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: peternied/discerning-merger@v1
if: steps.find-triggering-pr.outputs.pr-number != null
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.find-triggering-pr.outputs.pr-number }}
allowed-authors: |
dependabot%5Bbot%5D
allowed-files: |
build.gradle
.github/workflows/*.yml

0 comments on commit ab891d0

Please sign in to comment.