Skip to content

Commit 8706246

Browse files
authored
Merge pull request #421 from schurzi/imprel
Improve Release Action
2 parents 5cc8b2f + cd4925d commit 8706246

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,11 @@ jobs:
5353
# changelog gets updated but action works on old commit id
5454
- uses: actions/[email protected]
5555
with:
56-
fetch-depth: 0
56+
ref: master
5757

5858
- name: Generate changelog for the release
59-
uses: charmixer/auto-changelog-action@v1
60-
with:
61-
token: ${{ secrets.GITHUB_TOKEN }}
62-
since_tag: ${{ steps.previoustag.outputs.tag }}
63-
future_release: ${{ steps.version.outputs.next-version }}
64-
output: CHANGELOGRELEASE.md
65-
# this excludes all versions prior to the collection-release
66-
# since they break the changelog generation with the error:
67-
# "No common ancestor between ... and $version"
68-
exclude_tags_regex: '[0-6]\.\d\.\d'
59+
run: |
60+
sed '/## \[${{ steps.previoustag.outputs.tag }}\]/Q' CHANGELOG.md > CHANGELOGRELEASE.md
6961
7062
- name: Read CHANGELOG.md
7163
id: package

0 commit comments

Comments
 (0)