Skip to content

Commit

Permalink
. e add auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ilandikov authored May 20, 2024
1 parent 3a92c2a commit e007089
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@ jobs:
node-version: 20
- run: |
./run_tests.sh
auto-merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: auto-merge
if: |
github.actor == 'dependabot[bot]' &&
github.event_name == 'pull_request'
run: |
gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
# this secret needs to be in the settings.secrets.dependabot
GITHUB_TOKEN: ${{secrets.GH_ACTION_TOKEN}}

0 comments on commit e007089

Please sign in to comment.