-
Notifications
You must be signed in to change notification settings - Fork 104
49 lines (43 loc) · 1.27 KB
/
dependabot_pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Dependabot PR actions
on:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
jobs:
dependabot:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Check out code
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- name: Update the changelog
uses: dangoslen/dependabot-changelog-helper@v3
with:
version: 'Unreleased'
- name: Install dependencies
run: npm i -g prettier
- name: Format markdown files with prettier
run: prettier --prose-wrap never --write **/*.md
- name: Commit the changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update changelog"
branch: ${{ github.head_ref }}
commit_user_name: dependabot[bot]
commit_user_email: [email protected]
commit_options: '--signoff'