Skip to content

Commit 055afec

Browse files
authored
ci(GA): allow dependabot PRs merge (#1982)
1 parent 3dfe98a commit 055afec

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dependabot PR merge
2+
3+
# read-write repo token
4+
# access to secrets
5+
on:
6+
workflow_run:
7+
workflows: ["Node.js CI"]
8+
branches: [master]
9+
types:
10+
- completed
11+
12+
jobs:
13+
merge-me:
14+
name: Merge me!
15+
if: github.actor == 'dependabot[bot]'
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Merge me!
21+
uses: ridedott/merge-me-action@master
22+
with:
23+
GITHUB_LOGIN: dependabot[bot]
24+
GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
25+
MERGE_METHOD: SQUASH
26+
PRESET: DEPENDABOT_MINOR

.github/workflows/nodejs.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,6 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13-
merge-me:
14-
name: Merge me!
15-
if: github.actor == 'dependabot[bot]'
16-
17-
runs-on: ubuntu-latest
18-
19-
needs: [ build, commonjs-artifacts-test ]
20-
21-
strategy:
22-
matrix:
23-
node-version: [ 14.x ]
24-
25-
steps:
26-
- name: Merge me!
27-
uses: ridedott/merge-me-action@master
28-
with:
29-
GITHUB_LOGIN: dependabot[bot]
30-
GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
31-
MERGE_METHOD: SQUASH
32-
PRESET: DEPENDABOT_MINOR
33-
3413
build:
3514
runs-on: ubuntu-latest
3615

0 commit comments

Comments
 (0)