Skip to content

Commit

Permalink
ci(automerge): move dep updates automerge to sep workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Mar 24, 2021
1 parent caebc29 commit b7bbb4d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/automerge.yml
@@ -0,0 +1,18 @@
name: Automerge Dependabot Pull Requests

on:
workflow_run:
workflows: ["CI"]
types: [completed]

jobs:
on-success:
if: |
github.event.pull_request.draft == false &&
github.event.workflow_run.conclusion == 'success'
needs: [commit-lint, lint, unit-tests]
runs-on: ubuntu-latest
steps:
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@v1
with:
allowed-actors: dependabot[bot]
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -77,13 +77,3 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

automerge:
name: Automatically Merge Dependabot Pull Requests
if: github.event.pull_request.draft == false
needs: [commit-lint, lint, unit-tests]
runs-on: ubuntu-latest
steps:
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@v1
with:
allowed-actors: dependabot[bot]

0 comments on commit b7bbb4d

Please sign in to comment.