Skip to content

Commit

Permalink
ci(GA): allow dependabot to merge PRs (new GA) (swagger-api#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai authored Mar 18, 2021
1 parent d869272 commit b0dbd07
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dependabot-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Merge me!

on:
pull_request_target:

jobs:
merge-me:
name: Merge me!
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: 'Wait for status checks'
id: waitforstatuschecks
uses: WyriHaximus/github-action-wait-for-status@v1
with:
ignoreActions: Merge me!
checkInterval: 360
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Merge me!
if: steps.waitforstatuschecks.outputs.status == 'success'
uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
20 changes: 0 additions & 20 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,3 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14.x

merge-me:
name: Merge me!
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest

needs: [ build, artifact-bundle ]

strategy:
matrix:
node-version: [ 14.x ]

steps:
- name: Merge me!
uses: ridedott/merge-me-action@master
with:
GITHUB_LOGIN: dependabot[bot]
GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
MERGE_METHOD: SQUASH
PRESET: DEPENDABOT_MINOR

0 comments on commit b0dbd07

Please sign in to comment.