Skip to content

Commit 1c8ca13

Browse files
committed
chore: add dependabot changelog automation
Signed-off-by: Steve Hipwell <[email protected]>
1 parent 90c17d2 commit 1c8ca13

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
issuer: https://token.actions.githubusercontent.com
2+
subject: repo:action-stars/install-tool-from-github-release:pull_request
3+
4+
permissions:
5+
contents: write

.github/workflows/changelog.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Dependabot Changelog Entry
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, labeled]
6+
branches: [main]
7+
8+
permissions: read-all
9+
10+
jobs:
11+
changelog:
12+
name: Changelog
13+
if: github.actor == 'dependabot[bot]'
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
id-token: write
18+
defaults:
19+
run:
20+
shell: bash
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
with:
25+
fetch-depth: 1
26+
- uses: octo-sts/action@210248e8ae1ae1550aa6e232c6f192b3ccbf7335
27+
id: sts
28+
with:
29+
scope: ${{ github.repository}}
30+
identity: actions-pr
31+
- name: Changelog
32+
uses: crambl/dependabot-changelog-writer@647c79261a61787aada47de3535b3537cd5ecbc5 # v1.1.4
33+
with:
34+
push-token: ${{ steps.sts.outputs.token }}
35+
commit-message: "chore: Update changelog for Dependabot"
36+
changelog: ./CHANGELOG.md
37+
section-header: "Changed"
38+
changelog-entry-pattern: "Update [dep] from `[old]` to `[new]`. ([pr-link]) _@dependabot_"
39+
push-changes: true

0 commit comments

Comments
 (0)