File tree Expand file tree Collapse file tree 1 file changed +19
-24
lines changed Expand file tree Collapse file tree 1 file changed +19
-24
lines changed Original file line number Diff line number Diff line change 1
- name : Update changelog
1
+ name : " Update Changelog"
2
+
2
3
on :
3
4
release :
4
- types :
5
- - published
5
+ types : [released, pre-release]
6
+
6
7
jobs :
7
- run :
8
- name : Update changelog
8
+ update :
9
9
runs-on : ubuntu-latest
10
- env :
11
- CHANGELOG_GITHUB_TOKEN : ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
10
+
12
11
steps :
13
- - name : Checkout
14
- uses : actions/checkout@v3
12
+ - name : Checkout code
13
+ uses : actions/checkout@v2
15
14
with :
16
15
ref : master
17
- - name : Generate changelog
18
- uses : addnab/docker-run-action@v3
16
+
17
+ - name : Update Changelog
18
+ uses : stefanzweifel/changelog-updater-action@v1
19
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
20
+ latest-version : ${{ github.event.release.name }}
21
+ release-notes : ${{ github.event.release.body }}
22
+
23
+ - name : Commit updated CHANGELOG
24
+ uses : stefanzweifel/git-auto-commit-action@v4
31
25
with :
32
- github_token : ${{ secrets.GITHUB_TOKEN }}
33
- branch : master
26
+ branch : master
27
+ commit_message : Update CHANGELOG
28
+ file_pattern : CHANGELOG.md
You can’t perform that action at this time.
0 commit comments