Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 1e9df18

Browse files
authored
Merge pull request #289 from dev-sec/unify_actions
unify changelog and release actions
2 parents fba69f3 + e8a2906 commit 1e9df18

File tree

2 files changed

+19
-35
lines changed

2 files changed

+19
-35
lines changed

.github/workflows/changelog.yml

-34
This file was deleted.

.github/workflows/release.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,35 @@ jobs:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626

2727
- name: Generate changelog
28+
uses: charmixer/auto-changelog-action@8095796
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
future_release: ${{ steps.version.outputs.next-version }}
32+
33+
- name: Generate changelog for the release
2834
uses: charmixer/auto-changelog-action@8095796
2935
with:
3036
token: ${{ secrets.GITHUB_TOKEN }}
3137
since_tag: ${{ steps.previoustag.outputs.tag }}
3238
future_release: ${{ steps.version.outputs.next-version }}
39+
output: CHANGELOGRELEASE.md
40+
41+
- name: push changelog
42+
uses: github-actions-x/[email protected]
43+
with:
44+
github-token: ${{ secrets.GITHUB_TOKEN }}
45+
push-branch: 'master'
46+
commit-message: 'update changelog'
47+
force-add: 'true'
48+
files: CHANGELOG.md
49+
name: dev-sec CI
50+
3351

3452
- name: Read CHANGELOG.md
3553
id: package
3654
uses: juliangruber/read-file-action@v1
3755
with:
38-
path: ./CHANGELOG.md
56+
path: ./CHANGELOGRELEASE.md
3957

4058
- name: Create Release draft
4159
id: create_release

0 commit comments

Comments
 (0)