Skip to content

Commit 486e8c8

Browse files
authored
Add ci for change logs (#18)
1 parent 179d6ef commit 486e8c8

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Change Logs
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- master
7+
types:
8+
- closed
9+
# For manually triggering it
10+
workflow_dispatch:
11+
inputs:
12+
number:
13+
description: PR number
14+
required: true
15+
16+
jobs:
17+
latest-changes:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.GH_TOKEN }}
23+
- uses: docker://tiangolo/latest-changes:0.3.0
24+
with:
25+
token: ${{ secrets.GH_TOKEN }}
26+
latest_changes_file: docs/changelog.md
27+
latest_changes_header: '# Change Logs'

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Change Logs

0 commit comments

Comments
 (0)