Skip to content

Commit 7bcb7e4

Browse files
authored
Add auto-depenabot workflow (#122)
This workflow uses the new GitHub App for gettingt the credentials.
2 parents 585e8cb + 8ff697a commit 7bcb7e4

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Auto-merge Dependabot PR
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
10+
jobs:
11+
auto-merge:
12+
if: github.actor == 'dependabot[bot]'
13+
runs-on: ubuntu-slim
14+
steps:
15+
- name: Generate GitHub App token
16+
id: app-token
17+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
18+
with:
19+
app-id: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_ID }}
20+
private-key: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_PRIVATE_KEY }}
21+
22+
- name: Auto-merge Dependabot PR
23+
uses: frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1 # v1.3.2
24+
with:
25+
github-token: ${{ steps.app-token.outputs.token }}
26+
dependency-type: 'all'
27+
auto-merge: 'true'
28+
merge-method: 'merge'
29+
add-label: 'tool:auto-merged'

0 commit comments

Comments
 (0)