Skip to content

Commit 159ee30

Browse files
committed
add auto changelog generator
1 parent e2069e1 commit 159ee30

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update changelog
2+
on:
3+
release:
4+
types:
5+
- published
6+
jobs:
7+
run:
8+
name: Update changelog
9+
runs-on: ubuntu-latest
10+
env:
11+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
ref: master
17+
- name: Generate changelog
18+
uses: addnab/docker-run-action@v3
19+
with:
20+
image: githubchangeloggenerator/github-changelog-generator
21+
options: "-v ${{ github.workspace }}:/github/workspace --env SRC_PATH=/github/workspace --env CHANGELOG_GITHUB_TOKEN --workdir /github/workspace"
22+
run: "github_changelog_generator --user iamfarhad --project LaravelRabbitMQ"
23+
- name: Commit changes
24+
run: |
25+
git config --local user.email "action@github.com"
26+
git config --local user.name "GitHub Action"
27+
git add CHANGELOG.md
28+
git commit -m "update changelog" || true
29+
- name: Push changes
30+
uses: ad-m/github-push-action@master
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
branch: master

CHANGELOG.md

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

0 commit comments

Comments
 (0)