Skip to content

Commit

Permalink
unify changelog and release actions (dev-sec#279)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
  • Loading branch information
rndmh3ro committed Jun 6, 2020
1 parent d17fcc8 commit dcb025b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 35 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/changelog.yml

This file was deleted.

20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,35 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate changelog
uses: charmixer/auto-changelog-action@8095796
with:
token: ${{ secrets.GITHUB_TOKEN }}
future_release: ${{ steps.version.outputs.next-version }}

- name: Generate changelog for the release
uses: charmixer/auto-changelog-action@8095796
with:
token: ${{ secrets.GITHUB_TOKEN }}
since_tag: ${{ steps.previoustag.outputs.tag }}
future_release: ${{ steps.version.outputs.next-version }}
output: CHANGELOGRELEASE.md

- name: push changelog
uses: github-actions-x/commit@v2.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
commit-message: 'update changelog'
force-add: 'true'
files: CHANGELOG.md
name: dev-sec CI
email: hello@dev-sec.io

- name: Read CHANGELOG.md
id: package
uses: juliangruber/read-file-action@v1
with:
path: ./CHANGELOG.md
path: ./CHANGELOGRELEASE.md

- name: Create Release draft
id: create_release
Expand Down

0 comments on commit dcb025b

Please sign in to comment.