This repository was archived by the owner on Dec 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ name : New release
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ generate_changelog :
10+ runs-on : ubuntu-latest
11+ name : create release draft
12+ steps :
13+ - uses : actions/checkout@v1
14+
15+ - name : ' Get Previous tag'
16+ id : previoustag
17+ uses : " WyriHaximus/github-action-get-previous-tag@master"
18+ env :
19+ GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
20+
21+ - name : calculate next version
22+ id : version
23+ uses : patrickjahns/version-drafter-action@v1
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+
27+ - name : Generate changelog
28+ uses : charmixer/auto-changelog-action@v1
29+ with :
30+ token : ${{ secrets.GITHUB_TOKEN }}
31+ since_tag : ${{ steps.previoustag.outputs.tag }}
32+ # wait for https://github.com/CharMixer/auto-changelog-action/pull/3
33+ # future_release: ${{ steps.version.outputs.next-version }}
34+
35+ - name : Read CHANGELOG.md
36+ id : package
37+ uses : juliangruber/read-file-action@v1
38+ with :
39+ path : ./CHANGELOG.md
40+
41+ - name : Create Release draft
42+ id : create_release
43+ uses : actions/create-release@v1
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
46+ with :
47+ release_name : ${{ steps.version.outputs.next-version }}
48+ tag_name : ${{ steps.version.outputs.next-version }}
49+ body : |
50+ ${{ steps.package.outputs.content }}
51+ draft : true
You can’t perform that action at this time.
0 commit comments